mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-11 17:31:06 +01:00
Made PlayerAnimation cancellable. Thanks desmin88!
This commit is contained in:
parent
7d4ec8b183
commit
817cd83f0b
1 changed files with 2 additions and 0 deletions
|
@ -785,6 +785,8 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
||||||
// Arm swing animation
|
// Arm swing animation
|
||||||
PlayerAnimationEvent event = new PlayerAnimationEvent(this.getPlayer());
|
PlayerAnimationEvent event = new PlayerAnimationEvent(this.getPlayer());
|
||||||
this.server.getPluginManager().callEvent(event);
|
this.server.getPluginManager().callEvent(event);
|
||||||
|
|
||||||
|
if (event.isCancelled()) return;
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
|
|
||||||
this.player.w();
|
this.player.w();
|
||||||
|
|
Loading…
Reference in a new issue