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
+1
View File
@@ -30,6 +30,7 @@ public class WrapperInventoryRange implements IInventory
public WrapperInventoryRange(IInventory a, int[] s, boolean ignoreValid) {
src = a;
slots = s;
if ( slots == null )
slots = new int[0];