Skip to content

Commit

Permalink
Reset use item state on respawn
Browse files Browse the repository at this point in the history
  • Loading branch information
SamB440 committed Jun 19, 2024
1 parent d11e2c8 commit 268e812
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ public void onPacketSend(PacketSendEvent event) {
player.lastOnGround = false;
player.onGround = false;
player.isInBed = false;
player.packetStateData.slowedByUsingItem = player.packetStateData.wasSlowedByUsingItem = false;
player.packetStateData.packetPlayerOnGround = false; // If somewhere else pulls last ground to fix other issues
player.packetStateData.lastClaimedPosition = new Vector3d();
player.filterMojangStupidityOnMojangStupidity = new Vector3d();
Expand Down

0 comments on commit 268e812

Please sign in to comment.