From 6243ec7e50d0b1c43631e8b39afe69fd1b4e2132 Mon Sep 17 00:00:00 2001 From: crabman77 Date: Tue, 24 Feb 2015 23:42:31 +0100 Subject: [PATCH] add test if ropes mod is installed for craft fishing:pole with ropes:rope --- mods/fishing/crafting.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/fishing/crafting.lua b/mods/fishing/crafting.lua index 247e190d..d52e2b97 100644 --- a/mods/fishing/crafting.lua +++ b/mods/fishing/crafting.lua @@ -29,7 +29,7 @@ minetest.register_craft({ {"default:stick", "", "moreblocks:rope"}, } }) - +if minetest.get_modpath("ropes") ~= nil then minetest.register_craft({ output = "fishing:pole", recipe = { @@ -38,7 +38,7 @@ minetest.register_craft({ {"default:stick", "", "ropes:rope" }, } }) - +end ----------------------------------------------------------------------------------------------- -- Roasted Fish