fix: torches can be placed anywhere

This commit is contained in:
minjaesong
2024-03-01 22:15:39 +09:00
parent 5da4cee22e
commit 30caac283a
2 changed files with 15 additions and 2 deletions

View File

@@ -563,7 +563,7 @@ class UICrafting(val full: UIInventoryFull?) : UICanvas(
fun resolveIngredientKey(inventory: FixtureInventory, ingredient: CraftingCodex.CraftingIngredients, product: ItemID): ItemID {
val candidate = getItemCandidatesForIngredient(inventory, ingredient).filter { it.itm != product }
printdbg(this, "resolveIngredientKey product=$product, candidate=$candidate")
// printdbg(this, "resolveIngredientKey product=$product, candidate=$candidate")
return if (ingredient.keyMode == CraftingCodex.CraftingItemKeyMode.TAG) {
// filter out the product itself from the ingredient