2018-07-15 02:00:00 +02:00
|
|
|
--- a/net/minecraft/server/WorldGenWitchHut.java
|
|
|
|
+++ b/net/minecraft/server/WorldGenWitchHut.java
|
2019-04-23 04:00:00 +02:00
|
|
|
@@ -85,7 +85,7 @@
|
|
|
|
entitywitch.setPersistent();
|
2018-12-06 00:00:00 +01:00
|
|
|
entitywitch.setPositionRotation((double) j + 0.5D, (double) i, (double) k + 0.5D, 0.0F, 0.0F);
|
2020-06-25 02:00:00 +02:00
|
|
|
entitywitch.prepare(generatoraccessseed, generatoraccessseed.getDamageScaler(new BlockPosition(j, i, k)), EnumMobSpawn.STRUCTURE, (GroupDataEntity) null, (NBTTagCompound) null);
|
2020-08-11 23:00:00 +02:00
|
|
|
- generatoraccessseed.addAllEntities(entitywitch);
|
|
|
|
+ generatoraccessseed.addAllEntities(entitywitch, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.CHUNK_GEN); // CraftBukkit - add SpawnReason
|
2018-07-15 02:00:00 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-08-11 23:00:00 +02:00
|
|
|
@@ -107,7 +107,7 @@
|
|
|
|
entitycat.setPersistent();
|
|
|
|
entitycat.setPositionRotation((double) i + 0.5D, (double) j, (double) k + 0.5D, 0.0F, 0.0F);
|
|
|
|
entitycat.prepare(worldaccess, worldaccess.getDamageScaler(new BlockPosition(i, j, k)), EnumMobSpawn.STRUCTURE, (GroupDataEntity) null, (NBTTagCompound) null);
|
|
|
|
- worldaccess.addAllEntities(entitycat);
|
|
|
|
+ worldaccess.addAllEntities(entitycat, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.CHUNK_GEN); // CraftBukkit - add SpawnReason
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|