aboutsummaryrefslogtreecommitdiff
path: root/stairsplus
diff options
context:
space:
mode:
authorCalinou <calinou@opmbx.org>2014-05-10 20:35:40 +0200
committerCalinou <calinou@opmbx.org>2014-05-10 20:35:40 +0200
commit9550268c4957f2f8c5e74ee2ef972a4d3d578bc9 (patch)
treeb52c371ff535a0e3be7bb26ba2322ff0390b3259 /stairsplus
parent313271d6c340974f05ea937f752e1a33ca7da123 (diff)
downloadmoreblocks-9550268c4957f2f8c5e74ee2ef972a4d3d578bc9.tar.gz
moreblocks-9550268c4957f2f8c5e74ee2ef972a4d3d578bc9.tar.bz2
moreblocks-9550268c4957f2f8c5e74ee2ef972a4d3d578bc9.zip
Stairs+ nodes are not in wood and stone groups anymore to not make them usable in crafting.
Diffstat (limited to 'stairsplus')
-rw-r--r--stairsplus/registrations.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/stairsplus/registrations.lua b/stairsplus/registrations.lua
index b961bbf..c5362d9 100644
--- a/stairsplus/registrations.lua
+++ b/stairsplus/registrations.lua
@@ -29,7 +29,11 @@ for _, name in pairs(default_nodes) do
local nodename = "default:"..name
local ndef = minetest.registered_nodes[nodename]
local groups = {}
- for k, v in pairs(ndef.groups) do groups[k] = v end
+ for k, v in pairs(ndef.groups)
+ do if k ~= "wood" and k ~= "stone" then -- Ignore wood and stone groups to not make them usable in crafting.
+ groups[k] = v
+ end
+ end
local drop
if type(ndef.drop) == "string" then
drop = ndef.drop:sub(9)