Replace spigot check with generation check
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user