mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Fix null in will application
This commit is contained in:
1 file changed
+1
-1
@@ -53,7 +53,7 @@ public class AncientWillRecipe implements IRecipe {
|
||||
for(int i = 0; i < var1.getSizeInventory(); i++) {
|
||||
ItemStack stack = var1.getStackInSlot(i);
|
||||
if(!stack.isEmpty()) {
|
||||
if(stack.getItem() instanceof IAncientWillContainer && item == null)
|
||||
if(stack.getItem() instanceof IAncientWillContainer && item.isEmpty())
|
||||
item = stack;
|
||||
else will = stack.getItemDamage();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user