3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-07-31 19:38:03 +02:00

Fix clearing of wrapper

Dieser Commit ist enthalten in:
Myles 2016-07-02 21:07:22 +01:00
Ursprung 13c6a9d612
Commit c6d3c97c65

Datei anzeigen

@ -223,6 +223,7 @@ public class PacketWrapper {
}
if (readableObjects.size() > 0) {
packetValues.addAll(readableObjects);
readableObjects.clear();
}
int index = 0;
@ -267,7 +268,7 @@ public class PacketWrapper {
private void writeRemaining(ByteBuf output) {
if (inputBuffer != null) {
output.writeBytes(inputBuffer);
output.writeBytes(inputBuffer, inputBuffer.readableBytes());
}
}