dont override not connected chests

This commit is contained in:
DS-Minetest 2017-08-14 18:53:23 +02:00
parent e7718a0aa5
commit 859bede1e2
1 changed files with 1 additions and 1 deletions

View File

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