mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 12:02:36 +01:00
23 lines
833 B
Diff
23 lines
833 B
Diff
|
--- a/net/minecraft/world/entity/projectile/EntityDragonFireball.java
|
||
|
+++ b/net/minecraft/world/entity/projectile/EntityDragonFireball.java
|
||
|
@@ -15,6 +15,10 @@
|
||
|
import net.minecraft.world.phys.MovingObjectPosition;
|
||
|
import net.minecraft.world.phys.MovingObjectPositionEntity;
|
||
|
|
||
|
+// CraftBukkit start
|
||
|
+import org.bukkit.event.entity.EntityRemoveEvent;
|
||
|
+// CraftBukkit end
|
||
|
+
|
||
|
public class EntityDragonFireball extends EntityFireball {
|
||
|
|
||
|
public static final float SPLASH_RANGE = 4.0F;
|
||
|
@@ -61,7 +65,7 @@
|
||
|
|
||
|
this.level().levelEvent(2006, this.blockPosition(), this.isSilent() ? -1 : 1);
|
||
|
this.level().addFreshEntity(entityareaeffectcloud);
|
||
|
- this.discard();
|
||
|
+ this.discard(EntityRemoveEvent.Cause.HIT); // CraftBukkit - add Bukkit remove cause
|
||
|
}
|
||
|
|
||
|
}
|