Fix crash when analyze flower in FieldKit
This commit is contained in:
kordum committed 2017-07-10 19:03:17 +03:00
1 parent f6e2eec09c
commit 5e21a29d3f
2 files changed
+7 -2

No files matched your search

@@ -274,7 +274,12 @@ public class WindowFieldKit extends Window {
return;
}
getWindowInventory().setInventorySlotContents(0, Analyser.analyse(getWindowInventory().getStackInSlot(0)));
ItemStack stack = getWindowInventory().getStackInSlot(0);
if (stack == null) {
return;
}
getWindowInventory().setInventorySlotContents(0, Analyser.analyse(stack));
getWindowInventory().decrStackSize(1, 1);
}