Fix NullPointerException on wooden pipes when the inventory is empty

This commit is contained in:
Bart van Strien 2012-07-23 16:57:15 +02:00
parent b50c4de239
commit 60c13e0f70

View file

@ -103,6 +103,8 @@ public class PipeItemsWood extends Pipe implements IPowerReceptor {
IInventory inventory = (IInventory) tile;
ItemStack[] extracted = checkExtract(inventory, true, pos.orientation.reverse());
if (extracted == null)
return;
for(ItemStack stack : extracted) {
if (stack == null || stack.stackSize == 0) {