Initial commit (Forge 1291).
This commit is contained in:
11
patches/net/minecraft/village/VillageSiege.java.patch
Normal file
11
patches/net/minecraft/village/VillageSiege.java.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- ../src-base/minecraft/net/minecraft/village/VillageSiege.java
|
||||
+++ ../src-work/minecraft/net/minecraft/village/VillageSiege.java
|
||||
@@ -196,7 +196,7 @@
|
||||
}
|
||||
|
||||
entityzombie.setLocationAndAngles(vec3.xCoord, vec3.yCoord, vec3.zCoord, this.worldObj.rand.nextFloat() * 360.0F, 0.0F);
|
||||
- this.worldObj.spawnEntityInWorld(entityzombie);
|
||||
+ this.worldObj.addEntity(entityzombie, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.VILLAGE_INVASION); // CraftBukkit
|
||||
ChunkCoordinates chunkcoordinates = this.theVillage.getCenter();
|
||||
entityzombie.setHomeArea(chunkcoordinates.posX, chunkcoordinates.posY, chunkcoordinates.posZ, this.theVillage.getVillageRadius());
|
||||
return true;
|
Reference in New Issue
Block a user