41 lines
1.5 KiB
Diff
41 lines
1.5 KiB
Diff
--- a/net/minecraft/world/entity/projectile/windcharge/AbstractWindCharge.java
|
|
+++ b/net/minecraft/world/entity/projectile/windcharge/AbstractWindCharge.java
|
|
@@ -22,6 +22,10 @@
|
|
import net.minecraft.world.phys.MovingObjectPositionBlock;
|
|
import net.minecraft.world.phys.MovingObjectPositionEntity;
|
|
|
|
+// CraftBukkit start
|
|
+import org.bukkit.event.entity.EntityRemoveEvent;
|
|
+// CraftBukkit end
|
|
+
|
|
public abstract class AbstractWindCharge extends EntityFireball implements ItemSupplier {
|
|
|
|
public static final AbstractWindCharge.a EXPLOSION_DAMAGE_CALCULATOR = new AbstractWindCharge.a();
|
|
@@ -95,7 +99,7 @@
|
|
super.onHitBlock(movingobjectpositionblock);
|
|
if (!this.level().isClientSide) {
|
|
this.explode();
|
|
- this.discard();
|
|
+ this.discard(EntityRemoveEvent.Cause.HIT); // CraftBukkit - add Bukkit remove cause
|
|
}
|
|
|
|
}
|
|
@@ -104,7 +108,7 @@
|
|
protected void onHit(MovingObjectPosition movingobjectposition) {
|
|
super.onHit(movingobjectposition);
|
|
if (!this.level().isClientSide) {
|
|
- this.discard();
|
|
+ this.discard(EntityRemoveEvent.Cause.HIT); // CraftBukkit - add Bukkit remove cause
|
|
}
|
|
|
|
}
|
|
@@ -139,7 +143,7 @@
|
|
public void tick() {
|
|
if (!this.level().isClientSide && this.getBlockY() > this.level().getMaxBuildHeight() + 30) {
|
|
this.explode();
|
|
- this.discard();
|
|
+ this.discard(EntityRemoveEvent.Cause.OUT_OF_WORLD); // CraftBukkit - add Bukkit remove cause
|
|
} else {
|
|
super.tick();
|
|
}
|