3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-27 08:30:09 +01:00

Don't send a signed byte for digging.

Dieser Commit ist enthalten in:
Myles 2016-03-03 19:56:00 +00:00
Ursprung 1a90f0eb28
Commit ab9f786999

Datei anzeigen

@ -83,7 +83,7 @@ public class IncomingTransformer {
return; return;
} }
if (packet == PacketType.PLAY_PLAYER_DIGGING) { if (packet == PacketType.PLAY_PLAYER_DIGGING) {
byte status = input.readByte(); int status = input.readByte() & 0xFF; // unsign
if (status == 6) { // item swap if (status == 6) { // item swap
throw new CancelException(); throw new CancelException();
} }