summaryrefslogtreecommitdiffstats
path: root/nms-patches/WorldGenWitchHut.patch
blob: e3b94d87271fd197f8f3e9bc0b1a01861d1076a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/net/minecraft/server/WorldGenWitchHut.java
+++ b/net/minecraft/server/WorldGenWitchHut.java
@@ -86,7 +86,7 @@
                     entitywitch.di();
                     entitywitch.setPositionRotation((double) j + 0.5D, (double) i, (double) k + 0.5D, 0.0F, 0.0F);
                     entitywitch.prepare(generatoraccess.getDamageScaler(new BlockPosition(j, i, k)), (GroupDataEntity) null, (NBTTagCompound) null);
-                    generatoraccess.addEntity(entitywitch);
+                    generatoraccess.addEntity(entitywitch, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.CHUNK_GEN); // CraftBukkit - add SpawnReason
                 }
             }