public void sendKeyUpdate() { int keyState = (this.altKey.pressed ? 1 : 0) << 0 | (this.boostKey.pressed ? 1 : 0) << 1 | (this.mc.gameSettings.keyBindForward.pressed ? 1 : 0) << 2 | (this.modeSwitchKey.pressed ? 1 : 0) << 3 | (this.mc.gameSettings.keyBindJump.pressed ? 1 : 0) << 4 | (this.sideinventoryKey.pressed ? 1 : 0) << 5; if (keyState != this.lastKeyState) { System.out.println(keyState); PE.network.keyUpdate(keyState); super.processKeyUpdate(PE.platform.getPlayerInstance(), keyState); this.lastKeyState = keyState; } }