Add NPE check

Fixes #1090
This commit is contained in:
CovertJaguar 2013-08-04 16:02:31 -07:00
parent 15acae3c54
commit ee1a89f1c3

View file

@ -179,6 +179,9 @@ public class PipeItemsWood extends Pipe<PipeTransportItems> implements IPowerRec
}
public ItemStack checkExtractGeneric(ISidedInventory inventory, boolean doRemove, ForgeDirection from) {
if(inventory == null)
return null;
for (int k : inventory.getAccessibleSlotsFromSide(from.ordinal())) {
ItemStack slot = inventory.getStackInSlot(k);