mirror of
https://github.com/Nan1t/NanoLimbo.git
synced 2025-07-15 05:30:15 +02:00
Release byte buf if hash not found
This commit is contained in:
parent
1c3cb9b77d
commit
be1fa775ec
@ -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());
|
||||
}
|
||||
|
||||
hashes.put(hash, version);
|
||||
versionMessages.put(version, encodedMessage.toByteArray());
|
||||
encodedMessage.release();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user