From bbdcab727726225dca6d353ed4dc48815cd90b8e Mon Sep 17 00:00:00 2001 From: rasu3n Date: Wed, 26 Jul 2023 18:04:36 +0900 Subject: [PATCH] Player: Added animation to missSwing() (#5942) --- src/player/Player.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/player/Player.php b/src/player/Player.php index 9b6c321e8..292ab98b3 100644 --- a/src/player/Player.php +++ b/src/player/Player.php @@ -1897,13 +1897,14 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{ /** * Performs actions associated with the attack action (left-click) without a target entity. - * Under normal circumstances, this will play the no-damage attack sound and nothing else. + * Under normal circumstances, this will just play the no-damage attack sound and the arm-swing animation. */ public function missSwing() : void{ $ev = new PlayerMissedSwingEvent($this); $ev->call(); if(!$ev->isCancelled()){ $this->broadcastSound(new EntityAttackNoDamageSound()); + $this->broadcastAnimation(new ArmSwingAnimation($this), $this->getViewers()); } }