diff options
author | Calinou <calinou9999spam@gmail.com> | 2013-09-15 14:52:18 +0200 |
---|---|---|
committer | Calinou <calinou9999spam@gmail.com> | 2013-09-15 14:52:18 +0200 |
commit | 474d62ac7c6f540318ccba9777f4f2c8d35007ec (patch) | |
tree | a46abe31ce8454cfaa1dca2107c573394b8c3ec5 /stairsplus | |
parent | d8d84f75797223734add22031b148783703100db (diff) | |
download | moreblocks-474d62ac7c6f540318ccba9777f4f2c8d35007ec.tar.gz moreblocks-474d62ac7c6f540318ccba9777f4f2c8d35007ec.tar.bz2 moreblocks-474d62ac7c6f540318ccba9777f4f2c8d35007ec.zip |
Allow stair/slab crafting by default, can be disabled in _config.txt
Diffstat (limited to 'stairsplus')
-rw-r--r-- | stairsplus/slabs.lua | 5 | ||||
-rw-r--r-- | stairsplus/stairs.lua | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/stairsplus/slabs.lua b/stairsplus/slabs.lua index 458c8b9..875ebc8 100644 --- a/stairsplus/slabs.lua +++ b/stairsplus/slabs.lua @@ -115,8 +115,10 @@ function register_slab(modname, subname, recipeitem, groups, images, description end }) - -- Unregister default recipes + -- Unregister default recipes, optional, see _config.txt +if allow_stair_slab_crafting == false +then minetest.register_craft({ output = "moreblocks:nothing 1", recipe = { @@ -124,4 +126,5 @@ function register_slab(modname, subname, recipeitem, groups, images, description }, }) end +end diff --git a/stairsplus/stairs.lua b/stairsplus/stairs.lua index ae06e73..7fa6a30 100644 --- a/stairsplus/stairs.lua +++ b/stairsplus/stairs.lua @@ -225,8 +225,10 @@ function register_stair(modname, subname, recipeitem, groups, images, descriptio end }) - -- Unregister default recipes + -- Unregister default recipes, optional, see _config.txt +if allow_stair_slab_crafting == false +then minetest.register_craft({ output = "moreblocks:nothing 1", recipe = { @@ -245,4 +247,5 @@ function register_stair(modname, subname, recipeitem, groups, images, descriptio }, }) end +end |