mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 09:34:44 +01:00
23 lines
669 B
Diff
23 lines
669 B
Diff
|
--- a/net/minecraft/world/entity/monster/EntityEndermite.java
|
||
|
+++ b/net/minecraft/world/entity/monster/EntityEndermite.java
|
||
|
@@ -29,6 +29,10 @@
|
||
|
import net.minecraft.world.level.block.state.IBlockData;
|
||
|
import org.joml.Vector3f;
|
||
|
|
||
|
+// CraftBukkit start
|
||
|
+import org.bukkit.event.entity.EntityRemoveEvent;
|
||
|
+// CraftBukkit end
|
||
|
+
|
||
|
public class EntityEndermite extends EntityMonster {
|
||
|
|
||
|
private static final int MAX_LIFE = 2400;
|
||
|
@@ -122,7 +126,7 @@
|
||
|
}
|
||
|
|
||
|
if (this.life >= 2400) {
|
||
|
- this.discard();
|
||
|
+ this.discard(EntityRemoveEvent.Cause.DESPAWN); // CraftBukkit - add Bukkit remove cause
|
||
|
}
|
||
|
}
|
||
|
|