This commit is contained in:
Owen1212055
2025-05-31 13:23:51 -04:00
parent e49b5e88fa
commit 1b30919aac

View File

@@ -150,7 +150,7 @@
+ this.cserver.getPluginManager().callEvent(event); + this.cserver.getPluginManager().callEvent(event);
+ } + }
+ // CraftBukkit end + // CraftBukkit end
+ // Paper + // Paper start - PlayerToggleSneakEvent
+ net.minecraft.world.entity.player.Input lastInput = this.player.getLastClientInput(); + net.minecraft.world.entity.player.Input lastInput = this.player.getLastClientInput();
+ boolean shiftKeyDown = packet.input().shift(); + boolean shiftKeyDown = packet.input().shift();
+ if (lastInput.shift() != packet.input().shift()) { + if (lastInput.shift() != packet.input().shift()) {
@@ -163,7 +163,7 @@
+ shiftKeyDown = this.player.isShiftKeyDown(); + shiftKeyDown = this.player.isShiftKeyDown();
+ } + }
+ } + }
+ // Paper end + // Paper end - PlayerToggleSneakEvent
this.player.setLastClientInput(packet.input()); this.player.setLastClientInput(packet.input());
if (this.player.hasClientLoaded()) { if (this.player.hasClientLoaded()) {
this.player.resetLastActionTime(); this.player.resetLastActionTime();