Release byte buf if hash not found

This commit is contained in:
Nanit 2022-01-24 21:08:51 +02:00
parent 1c3cb9b77d
commit be1fa775ec

View File

@ -55,11 +55,11 @@ public class PacketSnapshot implements PacketOut {
if (hashed != null) {
mappings.put(version, hashed);
continue;
}
} else {
hashes.put(hash, version);
versionMessages.put(version, encodedMessage.toByteArray());
}
encodedMessage.release();
}