Fix issue with Double Chests not properly re-initializing their adapter when they change to a double chest.
This commit is contained in:
+16
-2
@@ -1255,7 +1255,21 @@ public class Platform
|
|||||||
|
|
||||||
int hash = target.hashCode();
|
int hash = target.hashCode();
|
||||||
|
|
||||||
if ( target instanceof IInventory )
|
if ( target instanceof TileEntityChest )
|
||||||
|
{
|
||||||
|
TileEntityChest targ = (TileEntityChest) target;
|
||||||
|
targ.checkForAdjacentChests();
|
||||||
|
if ( targ.adjacentChestZNeg != null )
|
||||||
|
hash ^= targ.adjacentChestZNeg.hashCode();
|
||||||
|
else if ( targ.adjacentChestZPosition != null )
|
||||||
|
hash ^= targ.adjacentChestZPosition.hashCode();
|
||||||
|
else if ( targ.adjacentChestXPos != null )
|
||||||
|
hash ^= targ.adjacentChestXPos.hashCode();
|
||||||
|
else if ( targ.adjacentChestXNeg != null )
|
||||||
|
hash ^= targ.adjacentChestXNeg.hashCode();
|
||||||
|
}
|
||||||
|
else if ( target instanceof IInventory )
|
||||||
|
{
|
||||||
hash ^= ((IInventory) target).getSizeInventory();
|
hash ^= ((IInventory) target).getSizeInventory();
|
||||||
|
|
||||||
if ( target instanceof ISidedInventory )
|
if ( target instanceof ISidedInventory )
|
||||||
@@ -1269,8 +1283,8 @@ public class Platform
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user