mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-11 17:31:06 +01:00
Added PlayerToggleSneakEvent.isSneaking().
This commit is contained in:
parent
4cefee5be7
commit
a6b8b80fad
1 changed files with 1 additions and 1 deletions
|
@ -815,7 +815,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
|||
|
||||
if (packet19entityaction.animation == 1 || packet19entityaction.animation == 2) {
|
||||
Player player = getPlayer();
|
||||
PlayerToggleSneakEvent event = new PlayerToggleSneakEvent(player);
|
||||
PlayerToggleSneakEvent event = new PlayerToggleSneakEvent(player, packet19entityaction.animation == 1);
|
||||
server.getPluginManager().callEvent(event);
|
||||
if (event.isCancelled()) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue