3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2025-01-11 15:40:51 +01:00
Paper/nms-patches/EntityFireworks.patch

12 Zeilen
490 B
Diff

2015-09-30 09:02:11 +10:00
--- a/net/minecraft/server/EntityFireworks.java
+++ b/net/minecraft/server/EntityFireworks.java
2016-03-01 08:32:46 +11:00
@@ -79,7 +79,7 @@
2015-09-30 09:02:11 +10:00
}
if (!this.world.isClientSide && this.ticksFlown > this.expectedLifespan) {
- this.world.broadcastEntityEffect(this, (byte) 17);
2016-03-01 08:32:46 +11:00
+ if (!org.bukkit.craftbukkit.event.CraftEventFactory.callFireworkExplodeEvent(this).isCancelled()) this.world.broadcastEntityEffect(this, (byte) 17); // CraftBukkit
2015-09-30 09:02:11 +10:00
this.die();
}