--- a/net/minecraft/server/level/RegionLimitedWorldAccess.java +++ b/net/minecraft/server/level/RegionLimitedWorldAccess.java @@ -319,6 +319,13 @@ @Override public boolean addFreshEntity(Entity entity) { + // CraftBukkit start + return addFreshEntity(entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.DEFAULT); + } + + @Override + public boolean addFreshEntity(Entity entity, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason reason) { + // CraftBukkit end int i = SectionPosition.blockToSectionCoord(entity.getBlockX()); int j = SectionPosition.blockToSectionCoord(entity.getBlockZ());