mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-18 05:43:49 -07:00
Update to Minecraft 1.13-pre7
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
--- a/net/minecraft/server/Village.java
|
||||
+++ b/net/minecraft/server/Village.java
|
||||
@@ -64,7 +64,7 @@
|
||||
EntityIronGolem entityirongolem = new EntityIronGolem(this.a);
|
||||
@@ -73,7 +73,7 @@
|
||||
BlockPosition blockposition1 = blockposition.a(this.a.random.nextInt(16) - 8, this.a.random.nextInt(6) - 3, this.a.random.nextInt(16) - 8);
|
||||
|
||||
entityirongolem.setPosition(vec3d.x, vec3d.y, vec3d.z);
|
||||
- this.a.addEntity(entityirongolem);
|
||||
+ this.a.addEntity(entityirongolem, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.VILLAGE_DEFENSE); // CraftBukkit
|
||||
++this.l;
|
||||
}
|
||||
}
|
||||
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) {
|
||||
if (entityirongolem.M() && entityirongolem.a((IWorldReader) this.a)) {
|
||||
|
Reference in New Issue
Block a user