3
0
KCauldronX/patches/net/minecraft/village/Village.java.patch
2015-03-22 20:38:04 +03:00

12 lines
606 B
Diff

--- ../src-base/minecraft/net/minecraft/village/Village.java
+++ ../src-work/minecraft/net/minecraft/village/Village.java
@@ -71,7 +71,7 @@
{
EntityIronGolem entityirongolem = new EntityIronGolem(this.worldObj);
entityirongolem.setPosition(vec3.xCoord, vec3.yCoord, vec3.zCoord);
- this.worldObj.spawnEntityInWorld(entityirongolem);
+ this.worldObj.addEntity(entityirongolem, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.VILLAGE_DEFENSE); // CraftBukkit
++this.numIronGolems;
}
}