mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 12:42:05 -07:00
Readd PlayerAnimationEvent constructor removed by upstream
This commit is contained in:
@@ -49,3 +49,17 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
*/
|
*/
|
||||||
public class PlayerAnimationEvent extends PlayerEvent implements Cancellable {
|
public class PlayerAnimationEvent extends PlayerEvent implements Cancellable {
|
||||||
private static final HandlerList handlers = new HandlerList();
|
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
|
||||||
|
*
|
||||||
|
Reference in New Issue
Block a user