diff --git a/src/net/torvald/terrarum/modulebasegame/ui/UICrafting.kt b/src/net/torvald/terrarum/modulebasegame/ui/UICrafting.kt index 17f98fad0..3c22eb0bc 100644 --- a/src/net/torvald/terrarum/modulebasegame/ui/UICrafting.kt +++ b/src/net/torvald/terrarum/modulebasegame/ui/UICrafting.kt @@ -541,7 +541,7 @@ class UICrafting(val full: UIInventoryFull) : UICanvas(), HasInventory { * For each ingredient of the recipe, returns list of (ingredient, how many the player has the ingredient, how many the recipe wants) */ fun recipeToIngredientRecord(inventory: FixtureInventory, recipe: CraftingCodex.CraftingRecipe, nearbyCraftingStations: List): List { - val hasStation = if (nearbyCraftingStations.isEmpty()) true else nearbyCraftingStations.contains(recipe.workbench) + val hasStation = if (recipe.workbench.isEmpty()) true else nearbyCraftingStations.contains(recipe.workbench) return recipe.ingredients.map { ingredient -> val selectedItem = if (ingredient.keyMode == CraftingCodex.CraftingItemKeyMode.TAG) { // If the player has the required item, use it; otherwise, will take an item from the ItemCodex