geforkt von Mirrors/Paper
Updated Upstream (Bukkit/CraftBukkit)
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: 0a4b84d6 SPIGOT-7003: Add missing PlayerAnimationType 830db7d5 SPIGOT-5984: Add non deprecated / magic value way to set pixel in MapCanvas 20caf8ff PR-754: Add DamageCause.SONIC_BOOM CraftBukkit Changes: 576a03704 SPIGOT-7003: Add missing PlayerAnimationType 0dcc5fdd0 SPIGOT-5984: Add non deprecated / magic value way to set pixel in MapCanvas d75aacb43 Update Netty version 3b34c6bea SPIGOT-7044: Modified RandomSourceWrapper to ensure random is not null before setting seed 4b60bfd18 PR-1059: Add DamageCause.SONIC_BOOM
Dieser Commit ist enthalten in:
Ursprung
929bb263c3
Commit
6c0ab6d3ef
@ -49,23 +49,3 @@ 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 {
|
|
||||||
*
|
|
||||||
* @param player The player instance
|
|
||||||
*/
|
|
||||||
+ @Deprecated // Paper
|
|
||||||
public PlayerAnimationEvent(@NotNull final Player player) {
|
|
||||||
super(player);
|
|
||||||
|
|
||||||
// Only supported animation type for now:
|
|
||||||
animationType = PlayerAnimationType.ARM_SWING;
|
|
||||||
}
|
|
||||||
+ // Paper start
|
|
||||||
+ public PlayerAnimationEvent(@NotNull final Player player, @NotNull PlayerAnimationType animationType) {
|
|
||||||
+ super(player);
|
|
||||||
+ this.animationType = animationType;
|
|
||||||
+ }
|
|
||||||
+ // Paper end
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the type of this animation event
|
|
||||||
|
@ -85,7 +85,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
event.setCancelled(cancelled);
|
event.setCancelled(cancelled);
|
||||||
|
|
||||||
@@ -0,0 +0,0 @@ public class CraftEventFactory {
|
@@ -0,0 +0,0 @@ public class CraftEventFactory {
|
||||||
cause = DamageCause.THORNS;
|
cause = DamageCause.SONIC_BOOM;
|
||||||
}
|
}
|
||||||
|
|
||||||
- return CraftEventFactory.callEntityDamageEvent(damager, entity, cause, modifiers, modifierFunctions, cancelled);
|
- return CraftEventFactory.callEntityDamageEvent(damager, entity, cause, modifiers, modifierFunctions, cancelled);
|
||||||
|
@ -12,7 +12,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
*/
|
*/
|
||||||
implementation("org.apache.logging.log4j:log4j-core:2.17.1") // Paper - implementation
|
implementation("org.apache.logging.log4j:log4j-core:2.17.1") // Paper - implementation
|
||||||
annotationProcessor("org.apache.logging.log4j:log4j-core:2.17.1") // Paper - Needed to generate meta for our Log4j plugins
|
annotationProcessor("org.apache.logging.log4j:log4j-core:2.17.1") // Paper - Needed to generate meta for our Log4j plugins
|
||||||
+ implementation("io.netty:netty-codec-haproxy:4.1.76.Final")
|
+ implementation("io.netty:netty-codec-haproxy:4.1.77.Final")
|
||||||
// Paper end
|
// Paper end
|
||||||
implementation("org.apache.logging.log4j:log4j-iostreams:2.17.1") // Paper
|
implementation("org.apache.logging.log4j:log4j-iostreams:2.17.1") // Paper
|
||||||
implementation("org.apache.logging.log4j:log4j-slf4j18-impl:2.17.1") // Paper
|
implementation("org.apache.logging.log4j:log4j-slf4j18-impl:2.17.1") // Paper
|
||||||
|
@ -12,7 +12,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Arm swing animation
|
// Arm swing animation
|
||||||
- PlayerAnimationEvent event = new PlayerAnimationEvent(this.getCraftPlayer());
|
- PlayerAnimationEvent event = new PlayerAnimationEvent(this.getCraftPlayer(), (packet.getHand() == InteractionHand.MAIN_HAND) ? PlayerAnimationType.ARM_SWING : PlayerAnimationType.OFF_ARM_SWING);
|
||||||
+ io.papermc.paper.event.player.PlayerArmSwingEvent event = new io.papermc.paper.event.player.PlayerArmSwingEvent(this.getCraftPlayer(), packet.getHand() == InteractionHand.MAIN_HAND ? org.bukkit.inventory.EquipmentSlot.HAND : org.bukkit.inventory.EquipmentSlot.OFF_HAND); // Paper
|
+ io.papermc.paper.event.player.PlayerArmSwingEvent event = new io.papermc.paper.event.player.PlayerArmSwingEvent(this.getCraftPlayer(), packet.getHand() == InteractionHand.MAIN_HAND ? org.bukkit.inventory.EquipmentSlot.HAND : org.bukkit.inventory.EquipmentSlot.OFF_HAND); // Paper
|
||||||
this.cserver.getPluginManager().callEvent(event);
|
this.cserver.getPluginManager().callEvent(event);
|
||||||
|
|
||||||
|
@ -288,63 +288,63 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
- <dependency>
|
- <dependency>
|
||||||
- <groupId>io.netty</groupId>
|
- <groupId>io.netty</groupId>
|
||||||
- <artifactId>netty-buffer</artifactId>
|
- <artifactId>netty-buffer</artifactId>
|
||||||
- <version>4.1.76.Final</version>
|
- <version>4.1.77.Final</version>
|
||||||
- <scope>compile</scope>
|
- <scope>compile</scope>
|
||||||
- </dependency>
|
- </dependency>
|
||||||
- <dependency>
|
- <dependency>
|
||||||
- <groupId>io.netty</groupId>
|
- <groupId>io.netty</groupId>
|
||||||
- <artifactId>netty-codec</artifactId>
|
- <artifactId>netty-codec</artifactId>
|
||||||
- <version>4.1.76.Final</version>
|
- <version>4.1.77.Final</version>
|
||||||
- <scope>compile</scope>
|
- <scope>compile</scope>
|
||||||
- </dependency>
|
- </dependency>
|
||||||
- <dependency>
|
- <dependency>
|
||||||
- <groupId>io.netty</groupId>
|
- <groupId>io.netty</groupId>
|
||||||
- <artifactId>netty-common</artifactId>
|
- <artifactId>netty-common</artifactId>
|
||||||
- <version>4.1.76.Final</version>
|
- <version>4.1.77.Final</version>
|
||||||
- <scope>compile</scope>
|
- <scope>compile</scope>
|
||||||
- </dependency>
|
- </dependency>
|
||||||
- <dependency>
|
- <dependency>
|
||||||
- <groupId>io.netty</groupId>
|
- <groupId>io.netty</groupId>
|
||||||
- <artifactId>netty-handler</artifactId>
|
- <artifactId>netty-handler</artifactId>
|
||||||
- <version>4.1.76.Final</version>
|
- <version>4.1.77.Final</version>
|
||||||
- <scope>compile</scope>
|
- <scope>compile</scope>
|
||||||
- </dependency>
|
- </dependency>
|
||||||
- <dependency>
|
- <dependency>
|
||||||
- <groupId>io.netty</groupId>
|
- <groupId>io.netty</groupId>
|
||||||
- <artifactId>netty-resolver</artifactId>
|
- <artifactId>netty-resolver</artifactId>
|
||||||
- <version>4.1.76.Final</version>
|
- <version>4.1.77.Final</version>
|
||||||
- <scope>compile</scope>
|
- <scope>compile</scope>
|
||||||
- </dependency>
|
- </dependency>
|
||||||
- <dependency>
|
- <dependency>
|
||||||
- <groupId>io.netty</groupId>
|
- <groupId>io.netty</groupId>
|
||||||
- <artifactId>netty-transport</artifactId>
|
- <artifactId>netty-transport</artifactId>
|
||||||
- <version>4.1.76.Final</version>
|
- <version>4.1.77.Final</version>
|
||||||
- <scope>compile</scope>
|
- <scope>compile</scope>
|
||||||
- </dependency>
|
- </dependency>
|
||||||
- <dependency>
|
- <dependency>
|
||||||
- <groupId>io.netty</groupId>
|
- <groupId>io.netty</groupId>
|
||||||
- <artifactId>netty-transport-classes-epoll</artifactId>
|
- <artifactId>netty-transport-classes-epoll</artifactId>
|
||||||
- <version>4.1.76.Final</version>
|
- <version>4.1.77.Final</version>
|
||||||
- <scope>compile</scope>
|
- <scope>compile</scope>
|
||||||
- </dependency>
|
- </dependency>
|
||||||
- <dependency>
|
- <dependency>
|
||||||
- <groupId>io.netty</groupId>
|
- <groupId>io.netty</groupId>
|
||||||
- <artifactId>netty-transport-native-epoll</artifactId>
|
- <artifactId>netty-transport-native-epoll</artifactId>
|
||||||
- <version>4.1.76.Final</version>
|
- <version>4.1.77.Final</version>
|
||||||
- <classifier>linux-x86_64</classifier>
|
- <classifier>linux-x86_64</classifier>
|
||||||
- <scope>compile</scope>
|
- <scope>compile</scope>
|
||||||
- </dependency>
|
- </dependency>
|
||||||
- <dependency>
|
- <dependency>
|
||||||
- <groupId>io.netty</groupId>
|
- <groupId>io.netty</groupId>
|
||||||
- <artifactId>netty-transport-native-epoll</artifactId>
|
- <artifactId>netty-transport-native-epoll</artifactId>
|
||||||
- <version>4.1.76.Final</version>
|
- <version>4.1.77.Final</version>
|
||||||
- <classifier>linux-aarch_64</classifier>
|
- <classifier>linux-aarch_64</classifier>
|
||||||
- <scope>compile</scope>
|
- <scope>compile</scope>
|
||||||
- </dependency>
|
- </dependency>
|
||||||
- <dependency>
|
- <dependency>
|
||||||
- <groupId>io.netty</groupId>
|
- <groupId>io.netty</groupId>
|
||||||
- <artifactId>netty-transport-native-unix-common</artifactId>
|
- <artifactId>netty-transport-native-unix-common</artifactId>
|
||||||
- <version>4.1.76.Final</version>
|
- <version>4.1.77.Final</version>
|
||||||
- <scope>compile</scope>
|
- <scope>compile</scope>
|
||||||
- </dependency>
|
- </dependency>
|
||||||
- <dependency>
|
- <dependency>
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 4b08dbc5ce3ddb031df2cff7be350842670f1929
|
Subproject commit 0a4b84d68e478de6751678238f1d18200ba51bf9
|
@ -1 +1 @@
|
|||||||
Subproject commit 50ef122ef8f56e7e36860e94e6e0d986165fb30e
|
Subproject commit 576a0370445b9c1344b337c02d955142d9004162
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren