Update ItemItemFinder.java

This commit is contained in:
Vasco Lavos authored and GitHub committed 2019-02-03 13:59:43 +00:00
1 parent 47ce2fd12b
commit 3ffd9aed49
1 file changed
+1 -1
@@ -191,7 +191,7 @@ public class ItemItemFinder extends ItemBauble implements IBaubleRender {
}
private boolean scanInventory(IItemHandler inv, ItemStack pstack) {
if(pstack.isEmpty())
if(pstack.isEmpty() || inv == null)
return false;
for(int l = 0; l < inv.getSlots(); l++) {