Put comment before the line.

This commit is contained in:
Calinou 2014-05-10 21:25:10 +02:00
parent 9550268c49
commit 2bf5da716d
1 changed files with 3 additions and 2 deletions

View File

@ -12,7 +12,7 @@ local default_nodes = {
"bronzeblock", "bronzeblock",
"diamondblock", "diamondblock",
"desert_stone", "desert_stone",
-- "desert_cobble", Does not work in minetest_game. -- "desert_cobble", -- Does not work in minetest_game.
"glass", "glass",
"tree", "tree",
"wood", "wood",
@ -30,7 +30,8 @@ for _, name in pairs(default_nodes) do
local ndef = minetest.registered_nodes[nodename] local ndef = minetest.registered_nodes[nodename]
local groups = {} local groups = {}
for k, v in pairs(ndef.groups) 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. -- Ignore wood and stone groups to not make them usable in crafting.
do if k ~= "wood" and k ~= "stone" then
groups[k] = v groups[k] = v
end end
end end