mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-05 14:42:22 -07:00
Fix
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user