mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 11:06:29 +01:00
18 lines
628 B
Diff
18 lines
628 B
Diff
--- a/net/minecraft/server/EntityFireworks.java
|
|
+++ b/net/minecraft/server/EntityFireworks.java
|
|
@@ -117,8 +117,12 @@
|
|
}
|
|
|
|
if (!this.world.isClientSide && this.ticksFlown > this.expectedLifespan) {
|
|
- this.world.broadcastEntityEffect(this, (byte) 17);
|
|
- this.k();
|
|
+ // CraftBukkit start
|
|
+ if (!org.bukkit.craftbukkit.event.CraftEventFactory.callFireworkExplodeEvent(this).isCancelled()) {
|
|
+ this.world.broadcastEntityEffect(this, (byte) 17);
|
|
+ this.k();
|
|
+ }
|
|
+ // CraftBukkit end
|
|
this.die();
|
|
}
|
|
|