From 9b68662b1746a7be6fbed93f380182b81a4e4e59 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Fri, 10 Jun 2022 14:43:59 +0200 Subject: [PATCH] Readd PlayerAnimationEvent constructor removed by upstream --- patches/api/Adds-PlayerArmSwingEvent.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/patches/api/Adds-PlayerArmSwingEvent.patch b/patches/api/Adds-PlayerArmSwingEvent.patch index 0c5d3c1a7..abbd1ae53 100644 --- a/patches/api/Adds-PlayerArmSwingEvent.patch +++ b/patches/api/Adds-PlayerArmSwingEvent.patch @@ -49,3 +49,17 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 */ public class PlayerAnimationEvent extends PlayerEvent implements Cancellable { private static final HandlerList handlers = new HandlerList(); +@@ -0,0 +0,0 @@ public class PlayerAnimationEvent extends PlayerEvent implements Cancellable { + animationType = playerAnimationType; + } + ++ // Paper start - readd old constructor ++ @Deprecated ++ public PlayerAnimationEvent(@NotNull final Player player) { ++ this(player, PlayerAnimationType.ARM_SWING); ++ } ++ // Paper end ++ + /** + * Get the type of this animation event + *