diff options
author | md_5 <git@md-5.net> | 2016-03-01 08:32:46 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-03-01 09:32:45 +1100 |
commit | aa008dff0f9bedbe88e1fe79831776b0a52eb90a (patch) | |
tree | cb520e0f4cc5d683fb9b7fb95de37480a7443dfb /nms-patches/WorldGenVillagePieces.patch | |
parent | e1ebe524a78e27f6a2829ed4574fded3779094e1 (diff) | |
download | craftbukkit-aa008dff0f9bedbe88e1fe79831776b0a52eb90a.tar craftbukkit-aa008dff0f9bedbe88e1fe79831776b0a52eb90a.tar.gz craftbukkit-aa008dff0f9bedbe88e1fe79831776b0a52eb90a.tar.lz craftbukkit-aa008dff0f9bedbe88e1fe79831776b0a52eb90a.tar.xz craftbukkit-aa008dff0f9bedbe88e1fe79831776b0a52eb90a.zip |
Update to Minecraft 1.9
Diffstat (limited to 'nms-patches/WorldGenVillagePieces.patch')
-rw-r--r-- | nms-patches/WorldGenVillagePieces.patch | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/nms-patches/WorldGenVillagePieces.patch b/nms-patches/WorldGenVillagePieces.patch index 4c46ae38..77e049f8 100644 --- a/nms-patches/WorldGenVillagePieces.patch +++ b/nms-patches/WorldGenVillagePieces.patch @@ -1,8 +1,34 @@ --- a/net/minecraft/server/WorldGenVillagePieces.java +++ b/net/minecraft/server/WorldGenVillagePieces.java -@@ -1559,7 +1559,7 @@ +@@ -282,10 +282,10 @@ + + protected void a(NBTTagCompound nbttagcompound) { + super.a(nbttagcompound); +- nbttagcompound.setInt("CA", Block.REGISTRY.a((Object) this.a)); +- nbttagcompound.setInt("CB", Block.REGISTRY.a((Object) this.b)); +- nbttagcompound.setInt("CC", Block.REGISTRY.a((Object) this.c)); +- nbttagcompound.setInt("CD", Block.REGISTRY.a((Object) this.d)); ++ nbttagcompound.setInt("CA", Block.REGISTRY.a(this.a)); ++ nbttagcompound.setInt("CB", Block.REGISTRY.a(this.b)); ++ nbttagcompound.setInt("CC", Block.REGISTRY.a(this.c)); ++ nbttagcompound.setInt("CD", Block.REGISTRY.a(this.d)); + } + + protected void b(NBTTagCompound nbttagcompound) { +@@ -413,8 +413,8 @@ + + protected void a(NBTTagCompound nbttagcompound) { + super.a(nbttagcompound); +- nbttagcompound.setInt("CA", Block.REGISTRY.a((Object) this.a)); +- nbttagcompound.setInt("CB", Block.REGISTRY.a((Object) this.b)); ++ nbttagcompound.setInt("CA", Block.REGISTRY.a(this.a)); ++ nbttagcompound.setInt("CB", Block.REGISTRY.a(this.b)); + } + + protected void b(NBTTagCompound nbttagcompound) { +@@ -1602,7 +1602,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.prepare(world.D(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 |