Fix a typo in our tile entity fix causing it to be ineffective.

This commit is contained in:
Lex Manos 2014-02-20 12:04:27 -08:00
parent b01d87f0c6
commit 6f49bba302
1 changed files with 3 additions and 5 deletions

View File

@ -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();
}