Fix issue #175 (TA3 Furnace Does not implement replacements in recipes)

This commit is contained in:
Joachim Stolberg 2024-06-30 14:00:34 +02:00
parent d7c31f9865
commit b1a338c8d4

View File

@ -12,8 +12,6 @@
]]-- ]]--
local S = techage.S
--Detects if the salt node is registered. --Detects if the salt node is registered.
minetest.register_on_mods_loaded(function() minetest.register_on_mods_loaded(function()
@ -32,13 +30,21 @@ minetest.register_on_mods_loaded(function()
"techage:water 1", "techage:water 1",
} }
}) })
else
-- Creates a water -> River Water recipe in absense of the farming:salt node. -- Add salt recipe as replacement for the minetest.register_craft("farming:salt") recipe
techage.recipes.add("ta4_doser", { techage.furnace.register_recipe({
output = "techage:river_water 1", output = "farming:salt",
input = { recipe = {"bucket:bucket_water"},
"techage:water 1", waste = "bucket:bucket_empty",
} time = 8,
}) })
end else
-- Creates a water -> River Water recipe in absense of the farming:salt node.
techage.recipes.add("ta4_doser", {
output = "techage:river_water 1",
input = {
"techage:water 1",
}
})
end
end) end)