mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
65bc2541a3
By: md_5 <git@md-5.net>
22 lines
683 B
Diff
22 lines
683 B
Diff
--- a/net/minecraft/world/entity/monster/EntityEndermite.java
|
|
+++ b/net/minecraft/world/entity/monster/EntityEndermite.java
|
|
@@ -25,6 +25,10 @@
|
|
import net.minecraft.world.level.World;
|
|
import net.minecraft.world.level.block.state.IBlockData;
|
|
|
|
+// CraftBukkit start
|
|
+import org.bukkit.event.entity.EntityRemoveEvent;
|
|
+// CraftBukkit end
|
|
+
|
|
public class EntityEndermite extends EntityMonster {
|
|
|
|
private static final int MAX_LIFE = 2400;
|
|
@@ -113,7 +117,7 @@
|
|
}
|
|
|
|
if (this.life >= 2400) {
|
|
- this.discard();
|
|
+ this.discard(EntityRemoveEvent.Cause.DESPAWN); // CraftBukkit - add Bukkit remove cause
|
|
}
|
|
}
|
|
|