summaryrefslogtreecommitdiffstats
path: root/nms-patches/WorldGenVillagePiece.patch
blob: 895b44e5c19eb25bf54742dbb01de413df549e9f (plain)
1
2
3
4
5
6
7
8
9
@@ -114,7 +114,7 @@
                 entityvillager.setPositionRotation((double) j1 + 0.5D, (double) k1, (double) l1 + 0.5D, 0.0F, 0.0F);
                 entityvillager.prepare(world.E(new BlockPosition(entityvillager)), (GroupDataEntity) null);
                 entityvillager.setProfession(this.c(i1, entityvillager.getProfession()));
-                world.addEntity(entityvillager);
+                world.addEntity(entityvillager, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.CHUNK_GEN); // CraftBukkit - add SpawnReason
             }
 
         }