This commit is contained in:
Adrian Siekierka 2014-11-06 16:39:06 +01:00
parent 2507218e00
commit b36d32f11a

View file

@ -35,12 +35,12 @@ class InventoryIteratorSided implements Iterable<IInvSlot> {
@Override
public boolean hasNext() {
return index < slots.length;
return slots != null ? index < slots.length : false;
}
@Override
public IInvSlot next() {
return new InvSlot(slots[index++]);
return slots != null ? new InvSlot(slots[index++]) : null;
}
@Override