2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/Village.java
|
|
|
|
+++ b/net/minecraft/server/Village.java
|
2018-11-14 04:17:25 +01:00
|
|
|
@@ -73,11 +73,11 @@
|
2018-07-15 02:00:00 +02:00
|
|
|
BlockPosition blockposition1 = blockposition.a(this.a.random.nextInt(16) - 8, this.a.random.nextInt(6) - 3, this.a.random.nextInt(16) - 8);
|
2014-11-25 22:32:16 +01:00
|
|
|
|
2018-07-15 02:00:00 +02:00
|
|
|
if (this.a(blockposition1)) {
|
|
|
|
- EntityIronGolem entityirongolem = (EntityIronGolem) EntityTypes.IRON_GOLEM.b(this.a, (NBTTagCompound) null, (IChatBaseComponent) null, (EntityHuman) null, blockposition1, false, false);
|
|
|
|
+ EntityIronGolem entityirongolem = (EntityIronGolem) EntityTypes.IRON_GOLEM.spawnCreature(this.a, (NBTTagCompound) null, (IChatBaseComponent) null, (EntityHuman) null, blockposition1, false, false, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.VILLAGE_DEFENSE); // CraftBukkit
|
|
|
|
|
|
|
|
if (entityirongolem != null) {
|
2018-08-26 04:00:00 +02:00
|
|
|
if (entityirongolem.a((GeneratorAccess) this.a, false) && entityirongolem.a((IWorldReader) this.a)) {
|
2018-11-14 04:17:25 +01:00
|
|
|
- this.a.addEntity(entityirongolem);
|
|
|
|
+ this.a.addEntity(entityirongolem, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.VILLAGE_DEFENSE); // CraftBukkit
|
|
|
|
return entityirongolem;
|
|
|
|
}
|
|
|
|
|