From 23cb7290606b2d310256653c86f76f4efa4a056e Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 28 Sep 2014 03:54:36 +0200 Subject: Make default mod optional --- init.lua | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 240efd7..6ef133f 100644 --- a/init.lua +++ b/init.lua @@ -201,6 +201,14 @@ if(minetest.get_modpath("flowers") ~= nil) then end end +if(minetest.get_modpath("default") ~= nil) then + minetest.register_craft({ + type = "shapeless", + output = "pep:regen2", + recipe = { "default:gold_lump", "pep:regen" } + }) +end + --[[ independent crafts ]] minetest.register_craft({ @@ -218,8 +226,3 @@ minetest.register_craft({ output = "pep:gravreset" , recipe = { "pep:grav0", "group:stone" } }) -minetest.register_craft({ - type = "shapeless", - output = "pep:regen2", - recipe = { "default:gold_lump", "pep:regen" } -}) -- cgit v1.2.3