Merge pull request #120 from bartbes/WoodenPipeNPE

Fix NullPointerException on wooden pipes when the inventory is empty / also closes #117
This commit is contained in:
SirSengir 2012-07-23 08:01:06 -07:00
commit 5662915ecb

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) {