1
0
mirror of https://github.com/HybridDog/connected_chests.git synced 2024-12-29 14:40:19 +01:00

Merge branch 'copy_def' of https://github.com/DS-Minetest/connected_chests into copy_def

This commit is contained in:
DS-Minetest 2017-08-29 18:04:03 +02:00
commit ccf4f00f69

View File

@ -182,7 +182,7 @@ function connected_chests.register_chest(fromname, data)
-- the left one contains inventory -- the left one contains inventory
local chest = {} local chest = {}
local origdef = minetest.registered_nodes[fromname] local origdef = table.copy(minetest.registered_nodes[fromname])
for i in pairs(origdef) do for i in pairs(origdef) do
chest[i] = rawget(origdef, i) chest[i] = rawget(origdef, i)
end end