use table.copy instead of own clone-node function

also make sure coloredwood loads first, opt depend
master
Vanessa Dannenberg 2019-06-18 14:33:16 -04:00
parent 41625bdf6f
commit fd2704217c
2 changed files with 2 additions and 12 deletions

View File

@ -10,3 +10,4 @@ streets_trafficlight?
trafficlight?
digilines?
digistuff?
coloredwood?

View File

@ -49,17 +49,6 @@ end
local digiline_wire_node = "digilines:wire_std_00000000"
-- clone node
local function clone_node(name)
local node2 = {}
local node = minetest.registered_nodes[name]
for k,v in pairs(node) do
node2[k]=v
end
return node2
end
minetest.register_privilege("streetlight", {
description = "Allows using streetlight spawners",
give_to_singleplayer = true
@ -222,7 +211,7 @@ for _, pole in ipairs(poles_tab) do
local lightparam2 = light[4] or 0
if enable_digilines then
local def = clone_node(matnode)
local def = table.copy(minetest.registered_nodes[matnode])
local dl_overlay
if def.drawtype == "fencelike" then