diff options
author | Calinou <calinou@opmbx.org> | 2014-06-27 20:14:08 +0200 |
---|---|---|
committer | Calinou <calinou@opmbx.org> | 2014-06-27 20:14:08 +0200 |
commit | e2f4cc369b98cdb13791738d4aa70605670223db (patch) | |
tree | cc852a6ebc47e5a5e6bb5573a64914047c64ba68 /stairsplus/registrations.lua | |
parent | 2b6eb1ff842229f202bfa8078a8c55eb8942d3b6 (diff) |
Code cleanup. Add tar and more stone types.
Diffstat (limited to 'stairsplus/registrations.lua')
-rw-r--r-- | stairsplus/registrations.lua | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/stairsplus/registrations.lua b/stairsplus/registrations.lua index 491c72f..cc22d33 100644 --- a/stairsplus/registrations.lua +++ b/stairsplus/registrations.lua @@ -1,6 +1,4 @@ --- Default stairs/slabs/panels/microblocks. - -local default_nodes = { +local default_nodes = { -- Default stairs/slabs/panels/microblocks: "stone", "cobble", "mossycobble", @@ -12,7 +10,7 @@ local default_nodes = { "bronzeblock", "diamondblock", "desert_stone", --- "desert_cobble", -- Does not work in minetest_game. +-- "desert_cobble", "glass", "tree", "wood", @@ -26,11 +24,11 @@ local default_nodes = { } for _, name in pairs(default_nodes) do - local nodename = "default:"..name + local nodename = "default:" .. name local ndef = minetest.registered_nodes[nodename] local groups = {} for k, v in pairs(ndef.groups) - -- Ignore wood and stone groups to not make them usable in crafting. + -- Ignore wood and stone groups to not make them usable in crafting: do if k ~= "wood" and k ~= "stone" then groups[k] = v end |