Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
mchorse committed Aug 22, 2023
2 parents ab64f67 + fd1c5b4 commit 0411909
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/mchorse/mappet/EventHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
Expand Down

0 comments on commit 0411909

Please sign in to comment.