From 6f49bba3027568bee0e899960dc35f267980eda5 Mon Sep 17 00:00:00 2001 From: Lex Manos Date: Thu, 20 Feb 2014 12:04:27 -0800 Subject: [PATCH] Fix a typo in our tile entity fix causing it to be ineffective. --- .../net/minecraft/entity/player/EntityPlayerMP.java.patch | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/patches/minecraft/net/minecraft/entity/player/EntityPlayerMP.java.patch b/patches/minecraft/net/minecraft/entity/player/EntityPlayerMP.java.patch index 7531956cb8..5854cf55d9 100644 --- a/patches/minecraft/net/minecraft/entity/player/EntityPlayerMP.java.patch +++ b/patches/minecraft/net/minecraft/entity/player/EntityPlayerMP.java.patch @@ -52,14 +52,12 @@ { this.closeScreen(); this.openContainer = this.inventoryContainer; -@@ -275,8 +273,9 @@ - +@@ -276,7 +274,8 @@ if (chunk.func_150802_k()) { -- arraylist.add(chunk); + arraylist.add(chunk); - arraylist1.addAll(((WorldServer)this.worldObj).func_147486_a(chunkcoordintpair.chunkXPos * 16, 0, chunkcoordintpair.chunkZPos * 16, chunkcoordintpair.chunkXPos * 16 + 16, 256, chunkcoordintpair.chunkZPos * 16 + 16)); -+ arraylist.add(chunk); -+ arraylist1.addAll(((WorldServer)this.worldObj).func_147486_a(chunkcoordintpair.chunkXPos * 16, 0, chunkcoordintpair.chunkZPos * 16, chunkcoordintpair.chunkXPos * 16 + 15, 256, chunkcoordintpair.chunkZPos * 16 + 16)); ++ arraylist1.addAll(((WorldServer)this.worldObj).func_147486_a(chunkcoordintpair.chunkXPos * 16, 0, chunkcoordintpair.chunkZPos * 16, chunkcoordintpair.chunkXPos * 16 + 15, 256, chunkcoordintpair.chunkZPos * 16 + 15)); + //BugFix: 16 makes it load an extra chunk, which isn't associated with a player, which makes it not unload unless a player walks near it. iterator1.remove(); }