From 268e812d1ac2e70f9a600a06093eabac150a3113 Mon Sep 17 00:00:00 2001 From: SamB440 Date: Wed, 19 Jun 2024 14:58:07 +0100 Subject: [PATCH] Reset use item state on respawn --- .../java/ac/grim/grimac/events/packets/PacketPlayerRespawn.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/ac/grim/grimac/events/packets/PacketPlayerRespawn.java b/src/main/java/ac/grim/grimac/events/packets/PacketPlayerRespawn.java index e8eb050ca4..4778203e42 100644 --- a/src/main/java/ac/grim/grimac/events/packets/PacketPlayerRespawn.java +++ b/src/main/java/ac/grim/grimac/events/packets/PacketPlayerRespawn.java @@ -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();