]> git.lizzy.rs Git - xdecor.git/blobdiff - src/recipes.lua
Alias empty shelf if moreblocks is enabled (#108)
[xdecor.git] / src / recipes.lua
index cb7ad1927ca77a6c30ca5d6b97ae5117a325fc9f..928f31b635af2fe12c26d76b396bb52aa3527f12 100644 (file)
@@ -95,14 +95,16 @@ minetest.register_craft({
        }
 })
 
-minetest.register_craft({
-       output = "xdecor:empty_shelf",
-       recipe = {
-               {"group:wood", "group:wood", "group:wood"},
-               {"", "", ""},
-               {"group:wood", "group:wood", "group:wood"}
-       }
-})
+if not minetest.get_modpath("moreblocks") then
+       minetest.register_craft({
+               output = "xdecor:empty_shelf",
+               recipe = {
+                       {"group:wood", "group:wood", "group:wood"},
+                       {"", "", ""},
+                       {"group:wood", "group:wood", "group:wood"}
+               }
+       })
+end
 
 minetest.register_craft({
        output = "xdecor:enderchest",