Check getAccessibleSlotsFromSide for null returns.

This commit is contained in:
AlgorithmX2
2014-07-31 23:52:16 -05:00
parent 4e0b03454c
commit 1c266fc91a
4 changed files with 16 additions and 3 deletions
+7 -2
View File
@@ -1052,8 +1052,13 @@ public class DualityInterface implements IGridTickable, ISegmentedInventory, ISt
if ( te instanceof IInventory && ((IInventory) te).getSizeInventory() == 0 )
continue;
if ( te instanceof ISidedInventory && ((ISidedInventory) te).getAccessibleSlotsFromSide( s.getOpposite().ordinal() ).length == 0 )
continue;
if ( te instanceof ISidedInventory )
{
int[] sides = ((ISidedInventory) te).getAccessibleSlotsFromSide( s.getOpposite().ordinal() );
if ( sides == null || sides.length == 0 )
continue;
}
if ( mop.blockX == te.xCoord && mop.blockY == te.yCoord && mop.blockZ == te.zCoord )
{