mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
eed041d629
By: md_5 <git@md-5.net>
22 lines
818 B
Diff
22 lines
818 B
Diff
--- a/net/minecraft/world/entity/projectile/EntityDragonFireball.java
|
|
+++ b/net/minecraft/world/entity/projectile/EntityDragonFireball.java
|
|
@@ -16,6 +16,10 @@
|
|
import net.minecraft.world.phys.MovingObjectPositionEntity;
|
|
import net.minecraft.world.phys.Vec3D;
|
|
|
|
+// CraftBukkit start
|
|
+import org.bukkit.event.entity.EntityRemoveEvent;
|
|
+// CraftBukkit end
|
|
+
|
|
public class EntityDragonFireball extends EntityFireball {
|
|
|
|
public static final float SPLASH_RANGE = 4.0F;
|
|
@@ -62,7 +66,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
|
|
}
|
|
|
|
}
|