Paper/nms-patches/WorldGenWitchHut.patch

12 lines
730 B
Diff
Raw Normal View History

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);
2019-04-23 04:00:00 +02:00
entitywitch.prepare(generatoraccess, generatoraccess.getDamageScaler(new BlockPosition(j, i, k)), EnumMobSpawn.STRUCTURE, (GroupDataEntity) null, (NBTTagCompound) null);
2018-07-15 02:00:00 +02:00
- generatoraccess.addEntity(entitywitch);
+ generatoraccess.addEntity(entitywitch, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.CHUNK_GEN); // CraftBukkit - add SpawnReason
}
}