From 7c5e7a39be3a50c33518d2e728aca457d506c76b Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Mon, 15 Aug 2022 11:57:44 +0100 Subject: [PATCH] Fix dependency on simplecrafting_lib --- df_farming/mod.conf | 2 +- df_farming/sweet_pod.lua | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/df_farming/mod.conf b/df_farming/mod.conf index 4a8e42c..7f88a3e 100644 --- a/df_farming/mod.conf +++ b/df_farming/mod.conf @@ -1,4 +1,4 @@ name = df_farming description = Adds farmable underground plants that die in sunlight. Also includes various cooking reactions. depends = default -optional_depends = farming, cottages, bucket, dynamic_liquid, wool, doc, crafting, footprints +optional_depends = farming, cottages, bucket, dynamic_liquid, wool, doc, simplecrafting_lib, footprints diff --git a/df_farming/sweet_pod.lua b/df_farming/sweet_pod.lua index 5ace9a6..c6438e2 100644 --- a/df_farming/sweet_pod.lua +++ b/df_farming/sweet_pod.lua @@ -24,7 +24,7 @@ local register_sweet_pod = function(number) {-8/16, -8/16, -8/16, 8/16, -8/16 + (16/6)*number/16, 8/16}, }, }, - + on_timer = function(pos, elapsed) df_farming.grow_underground_plant(pos, name, elapsed) end, @@ -47,12 +47,12 @@ local register_sweet_pod = function(number) }, }, } - + if number < 6 then def._dfcaverns_next_stage = "df_farming:sweet_pod_"..tostring(number+1) def._dfcaverns_next_stage_time = sweet_pod_grow_time end - + minetest.register_node(name, def) end @@ -186,7 +186,7 @@ if minetest.get_modpath("bucket") then groups = {liquid = 3, flammable = 2}, sounds = df_farming.sounds.water, }) - + minetest.register_node("df_farming:dwarven_syrup_flowing", { description = S("Flowing Dwarven Syrup"), _doc_items_longdesc = df_farming.doc.sweet_pod_syrup_desc, @@ -243,8 +243,8 @@ if minetest.get_modpath("bucket") then "dfcaverns_bucket_dwarven_syrup.png", S("Dwarven Syrup Bucket") ) - - if minetest.get_modpath("crafting") then + + if minetest.get_modpath("simplecrafting_lib") then simplecrafting_lib.register("furnace", { input = { [df_farming.node_names.bucket] = 1, @@ -260,8 +260,8 @@ if minetest.get_modpath("bucket") then recipe = {df_farming.node_names.bucket, "df_farming:sugar", "df_farming:sugar", "df_farming:sugar"}, }) end - + if minetest.get_modpath("dynamic_liquid") then dynamic_liquid.liquid_abm("df_farming:dwarven_syrup_source", "df_farming:dwarven_syrup_flowing", 5) end -end \ No newline at end of file +end