Fix NullPointerException on wooden pipes when the inventory is empty
This commit is contained in:
parent
b50c4de239
commit
60c13e0f70
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