blob: abcecdf98a02ec562d3fc2e2e130a040a9ddee5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- a/net/minecraft/server/MobSpawnerAbstract.java
+++ b/net/minecraft/server/MobSpawnerAbstract.java
@@ -41,6 +41,7 @@
public void setMobName(EntityTypes<?> entitytypes) {
this.spawnData.b().setString("id", ((MinecraftKey) EntityTypes.REGISTRY.b(entitytypes)).toString());
+ this.mobs.clear(); // CraftBukkit - SPIGOT-3496, MC-92282
}
private boolean h() {
@@ -110,7 +111,7 @@
((EntityInsentient) entity).prepare(world.getDamageScaler(new BlockPosition(entity)), (GroupDataEntity) null, (NBTTagCompound) null);
}
- ChunkRegionLoader.a(entity, (GeneratorAccess) world);
+ ChunkRegionLoader.a(entity, (GeneratorAccess) world, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.SPAWNER); // CraftBukkit
world.triggerEffect(2004, blockposition, 0);
if (entityinsentient != null) {
entityinsentient.doSpawnEffect();
|