Do not start craft until it recipe is locked.

This commit is contained in:
drcrazy 2020-11-14 16:57:15 +03:00
parent 05a55a3294
commit 3ad9f87a6a

View file

@ -114,10 +114,11 @@ public class AutoCraftingTableBlockEntity extends PowerAcceptorBlockEntity
return inventoryCrafting;
}
// Check if we have recipe, inputs and space for outputs
// Check if we have locked recipe, inputs and space for outputs
private boolean canMake(CraftingRecipe recipe) {
if (world == null) return false;
if (recipe == null) return false;
if (!locked) return false;
CraftingInventory crafting = getCraftingInventory();
if (crafting.isEmpty()) return false;