Skip to content

Commit

Permalink
v21
Browse files Browse the repository at this point in the history
  • Loading branch information
Spigey committed May 7, 2024
1 parent d9966ff commit 6572744
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ private void onTick(TickEvent.Pre event){
if(mc.player.getVelocity().getY() == 0 || mc.player.isOnGround()) level = mc.player.getBlockPos().getY();
if(Input.isKeyPressed(GLFW.GLFW_KEY_SPACE)){level++;}
if(Input.isKeyPressed(GLFW.GLFW_KEY_LEFT_SHIFT) && !mc.player.isOnGround()){level--;}
if(mc.player.getBlockPos().getY() <= level){
if(mc.player.getBlockPos().getY() < level){
/* mc.player.networkHandler.sendPacket(new PlayerMoveC2SPacket.PositionAndOnGround(mc.player.getX(), level, mc.player.getZ(), true));
mc.player.setPosition(mc.player.getX(), level, mc.player.getZ()); */
if(mc.player.getVelocity().y < 0) mc.player.setVelocity(mc.player.getVelocity().x, 0, mc.player.getVelocity().z);
Expand Down

0 comments on commit 6572744

Please sign in to comment.