aboutsummaryrefslogtreecommitdiff
path: root/stairsplus/registrations.lua
diff options
context:
space:
mode:
authorCalinou <Calinou@users.noreply.github.com>2015-11-06 17:28:01 +0100
committerCalinou <Calinou@users.noreply.github.com>2015-11-06 17:28:01 +0100
commitd3ba90d012de2a6e0f2cff86083ace8ce1766cc4 (patch)
treec5266d8ad8ef63aaf424b05b3a334d1b02aacd56 /stairsplus/registrations.lua
parentf02a871c30c302014dda49c278f62ccaf29dc620 (diff)
parent54a7102291c024315483d18d8f4c662fde45ce41 (diff)
downloadmoreblocks-d3ba90d012de2a6e0f2cff86083ace8ce1766cc4.tar.gz
moreblocks-d3ba90d012de2a6e0f2cff86083ace8ce1766cc4.tar.bz2
moreblocks-d3ba90d012de2a6e0f2cff86083ace8ce1766cc4.zip
Merge pull request #24 from pyrollo/master
Make stairplus:register_* functions work without using register_all.
Diffstat (limited to 'stairsplus/registrations.lua')
-rw-r--r--stairsplus/registrations.lua9
1 files changed, 1 insertions, 8 deletions
diff --git a/stairsplus/registrations.lua b/stairsplus/registrations.lua
index 7fe9905..3e08565 100644
--- a/stairsplus/registrations.lua
+++ b/stairsplus/registrations.lua
@@ -40,13 +40,6 @@ for _, name in pairs(default_nodes) do
local nodename = "default:" .. name
local ndef = minetest.registered_nodes[nodename]
if ndef then
- local groups = {}
- for k, v in pairs(ndef.groups)
- -- Ignore wood and stone groups to not make them usable in crafting:
- do if k ~= "wood" and k ~= "stone" then
- groups[k] = v
- end
- end
local drop
if type(ndef.drop) == "string" then
drop = ndef.drop:sub(9)
@@ -54,7 +47,7 @@ for _, name in pairs(default_nodes) do
stairsplus:register_all("moreblocks", name, nodename, {
description = ndef.description,
drop = drop,
- groups = groups,
+ groups = ndef.groups,
sounds = ndef.sounds,
tiles = ndef.tiles,
sunlight_propagates = true,