mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-26 01:32:02 -07:00
Updated Upstream (Bukkit/CraftBukkit) (#7936)
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: c1d911a2 Add compat constructor to PlayerAnimationEvent CraftBukkit Changes: effea36a2 PR-1065: Add missing calls for BlockSpreadEvent when Sculk spreads
This commit is contained in:
@@ -23,7 +23,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ private final EquipmentSlot equipmentSlot;
|
||||
+
|
||||
+ public PlayerArmSwingEvent(@NotNull Player player, @NotNull EquipmentSlot equipmentSlot) {
|
||||
+ super(player, PlayerAnimationType.ARM_SWING);
|
||||
+ super(player, equipmentSlot == EquipmentSlot.HAND ? PlayerAnimationType.ARM_SWING : PlayerAnimationType.OFF_ARM_SWING);
|
||||
+ this.equipmentSlot = equipmentSlot;
|
||||
+ }
|
||||
+
|
||||
@@ -49,17 +49,3 @@ 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
|
||||
*
|
||||
|
Submodule work/Bukkit updated: 45d9c73c34...c1d911a2b4
Submodule work/CraftBukkit updated: cc7edd6bc5...effea36a28
Reference in New Issue
Block a user