lib/recipe.lua
---CUT--- #1
local function ResourceToCoin(exchange)
return {
type = "recipe",
name = exchange.resource .. "-for-coin",
allow_as_intermediate = false, -- THIS LINE <<<<<<<<<<<<<<<<<<<<<
order = GetItemOrder(exchange),
---CUT---#1
---CUT---#2
local function CoinToResource(exchange)
return {
type = "recipe",
name = "coin-for-" .. exchange.resource,
allow_as_intermediate = false, -- THIS LINE <<<<<<<<<<<<<<<<<<<<<
order = GetItemOrder(exchange),
---CUT---#2