Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-03 14:50:30 +01:00
Fix clearing of wrapper
Dieser Commit ist enthalten in:
Ursprung
13c6a9d612
Commit
c6d3c97c65
@ -223,6 +223,7 @@ public class PacketWrapper {
|
|||||||
}
|
}
|
||||||
if (readableObjects.size() > 0) {
|
if (readableObjects.size() > 0) {
|
||||||
packetValues.addAll(readableObjects);
|
packetValues.addAll(readableObjects);
|
||||||
|
readableObjects.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
int index = 0;
|
int index = 0;
|
||||||
@ -267,7 +268,7 @@ public class PacketWrapper {
|
|||||||
|
|
||||||
private void writeRemaining(ByteBuf output) {
|
private void writeRemaining(ByteBuf output) {
|
||||||
if (inputBuffer != null) {
|
if (inputBuffer != null) {
|
||||||
output.writeBytes(inputBuffer);
|
output.writeBytes(inputBuffer, inputBuffer.readableBytes());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren