1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2024-12-14 18:56:16 +01:00
PaperMC/nms-patches/WorldGenWitchHut.patch
2019-04-23 12:00:00 +10:00

11 lines
730 B
Diff

--- a/net/minecraft/server/WorldGenWitchHut.java
+++ b/net/minecraft/server/WorldGenWitchHut.java
@@ -85,7 +85,7 @@
entitywitch.setPersistent();
entitywitch.setPositionRotation((double) j + 0.5D, (double) i, (double) k + 0.5D, 0.0F, 0.0F);
entitywitch.prepare(generatoraccess, generatoraccess.getDamageScaler(new BlockPosition(j, i, k)), EnumMobSpawn.STRUCTURE, (GroupDataEntity) null, (NBTTagCompound) null);
- generatoraccess.addEntity(entitywitch);
+ generatoraccess.addEntity(entitywitch, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.CHUNK_GEN); // CraftBukkit - add SpawnReason
}
}