geforkt von Mirrors/Velocity
Revert "Avoid calling writeVarInt in the (very) common uncompressed packet case"
This reverts commit c041bea1b6
.
Dieser Commit ist enthalten in:
Ursprung
c041bea1b6
Commit
2713831f77
@ -39,7 +39,7 @@ public class MinecraftCompressEncoder extends MessageToByteEncoder<ByteBuf> {
|
||||
int uncompressed = msg.readableBytes();
|
||||
if (uncompressed < threshold) {
|
||||
// Under the threshold, there is nothing to do.
|
||||
out.writeByte(0);
|
||||
ProtocolUtils.writeVarInt(out, 0);
|
||||
out.writeBytes(msg);
|
||||
} else {
|
||||
ProtocolUtils.writeVarInt(out, uncompressed);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren