3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-08 17:20:24 +01:00

Patch inventory shield bug

Dieser Commit ist enthalten in:
Myles 2016-03-21 22:28:11 +00:00
Ursprung 175606f320
Commit 57931e7231

Datei anzeigen

@ -163,6 +163,18 @@ public class IncomingTransformer {
if (packet == PacketType.PLAY_CLOSE_WINDOW_REQUEST) {
info.closeWindow();
}
if (packet == PacketType.PLAY_CLIENT_STATUS) {
int action = PacketUtil.readVarInt(input);
PacketUtil.writeVarInt(action, input);
if (action == 2) {
// cancel any blocking >.>
if (startedBlocking) {
sendSecondHandItem(null);
startedBlocking = false;
}
}
}
if (packet == PacketType.PLAY_CLIENT_SETTINGS) {
String locale = PacketUtil.readString(input);
PacketUtil.writeString(locale, output);