mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-10-26 14:23:57 +00:00
Merge pull request #8 from GTNewHorizons/worktable-npe
Fix NPE on crafting in worktable
This commit is contained in:
1 file changed
+1
-1
@@ -56,7 +56,7 @@ public class SlotCrafter extends SlotCrafting {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPickupFromSlot(EntityPlayer player, ItemStack itemStack) {
|
public void onPickupFromSlot(EntityPlayer player, ItemStack itemStack) {
|
||||||
if (!crafter.onCraftingStart(player)) {
|
if (itemStack == null || !crafter.onCraftingStart(player)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user