From b1a338c8d470a6c81173e8177644ce77e9855537 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Sun, 30 Jun 2024 14:00:34 +0200 Subject: [PATCH] Fix issue #175 (TA3 Furnace Does not implement replacements in recipes) --- items/salt.lua | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/items/salt.lua b/items/salt.lua index dd59a02..7a401fa 100644 --- a/items/salt.lua +++ b/items/salt.lua @@ -12,8 +12,6 @@ ]]-- -local S = techage.S - --Detects if the salt node is registered. minetest.register_on_mods_loaded(function() @@ -32,13 +30,21 @@ minetest.register_on_mods_loaded(function() "techage:water 1", } }) - 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", - } + + -- Add salt recipe as replacement for the minetest.register_craft("farming:salt") recipe + techage.furnace.register_recipe({ + output = "farming:salt", + recipe = {"bucket:bucket_water"}, + 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)