Replace spigot check with generation check

This commit is contained in:
Bjarne Koll
2025-05-24 22:43:48 +02:00
parent b8fe22c9cd
commit ee3b405316
2 changed files with 5 additions and 7 deletions

View File

@@ -1961,10 +1961,8 @@ public class CraftEventFactory {
return;
}
// SPIGOT-8041: Do not call event unless entity has been spawned into world
if (!entity.inWorld) {
return;
}
// Do not call during generation.
if (entity.generation) return;
Bukkit.getPluginManager().callEvent(new EntityRemoveEvent(entity.getBukkitEntity(), cause));
}