1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-12-25 18:55:28 +01:00

[moreblocks] Update

This commit is contained in:
LeMagnesium
2015-11-13 19:11:45 +01:00
parent 1a57595005
commit 90af647d5a
10 changed files with 74 additions and 55 deletions

View File

@@ -42,13 +42,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:split(" ")[1]:sub(9)
@@ -56,7 +49,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,