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:
commit
5662915ecb
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue