diff --git a/src/main/java/mchorse/mappet/EventHandler.java b/src/main/java/mchorse/mappet/EventHandler.java index e15684e2..d492a3cf 100644 --- a/src/main/java/mchorse/mappet/EventHandler.java +++ b/src/main/java/mchorse/mappet/EventHandler.java @@ -1242,12 +1242,12 @@ public void onKeyInput(InputEvent.KeyInputEvent event) EntityPlayer player = Minecraft.getMinecraft().player; if ( - player.isRiding() && - player.getRidingEntity() instanceof EntityNpc - && ((EntityNpc) player.getRidingEntity()).getState().canBeSteered.get() - ) - { + player.isRiding() && + player.getRidingEntity() instanceof EntityNpc && + ((EntityNpc) player.getRidingEntity()).getState().canBeSteered.get() + ) { float jumpPower = ((EntityNpc) player.getRidingEntity()).getState().jumpPower.get(); + Dispatcher.sendToServer(new PacketNpcJump(player.getRidingEntity().getEntityId(), jumpPower)); } }