From 36a20910bab75b12c1efaa63f46b1334f547fdff Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Tue, 31 Jan 2017 20:11:12 -0700 Subject: [PATCH] there was a hidden farming dependency, probably never noticed because minetest-game has both default and farming --- crafts.lua | 18 ++++++++++-------- depends.txt | 1 + 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/crafts.lua b/crafts.lua index ce0dc75..9be5dc8 100644 --- a/crafts.lua +++ b/crafts.lua @@ -1,13 +1,15 @@ -- Misc -minetest.register_craft({ - output = 'ropes:ropesegment', - recipe = { - {'farming:cotton',}, - {'farming:cotton',}, - {'farming:cotton'} - } -}) +if minetest.get_modpath("farming") then + minetest.register_craft({ + output = 'ropes:ropesegment', + recipe = { + {'farming:cotton',}, + {'farming:cotton',}, + {'farming:cotton'} + } + }) +end minetest.register_craftitem("ropes:ropesegment", { description = "Rope", diff --git a/depends.txt b/depends.txt index 92dd391..eba2b6d 100644 --- a/depends.txt +++ b/depends.txt @@ -1,2 +1,3 @@ default +farming? doc? \ No newline at end of file