Merge pull request #8 from GTNewHorizons/worktable-npe

Fix NPE on crafting in worktable
This commit is contained in:
Martin Robertz authored and GitHub committed 2021-04-06 17:05:20 +02:00
commit 4c7c7c3438
1 file changed
+1 -1
@@ -56,7 +56,7 @@ public class SlotCrafter extends SlotCrafting {
@Override
public void onPickupFromSlot(EntityPlayer player, ItemStack itemStack) {
if (!crafter.onCraftingStart(player)) {
if (itemStack == null || !crafter.onCraftingStart(player)) {
return;
}