Do not start craft until it recipe is locked.
This commit is contained in:
parent
05a55a3294
commit
3ad9f87a6a
1 changed files with 2 additions and 1 deletions
|
@ -114,10 +114,11 @@ public class AutoCraftingTableBlockEntity extends PowerAcceptorBlockEntity
|
||||||
return inventoryCrafting;
|
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) {
|
private boolean canMake(CraftingRecipe recipe) {
|
||||||
if (world == null) return false;
|
if (world == null) return false;
|
||||||
if (recipe == null) return false;
|
if (recipe == null) return false;
|
||||||
|
if (!locked) return false;
|
||||||
|
|
||||||
CraftingInventory crafting = getCraftingInventory();
|
CraftingInventory crafting = getCraftingInventory();
|
||||||
if (crafting.isEmpty()) return false;
|
if (crafting.isEmpty()) return false;
|
||||||
|
|
Loading…
Reference in a new issue