From 859bede1e2f7346dfffa98584ac1d61f1a5c5d2e Mon Sep 17 00:00:00 2001 From: DS-Minetest Date: Mon, 14 Aug 2017 18:53:23 +0200 Subject: [PATCH 1/3] dont override not connected chests --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 9059bbe..aab8478 100644 --- a/init.lua +++ b/init.lua @@ -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 From c05c3178c81b4997288273c83c656e870d6baa7f Mon Sep 17 00:00:00 2001 From: DS-Minetest Date: Mon, 14 Aug 2017 18:53:23 +0200 Subject: [PATCH 2/3] dont override not connected chests --- init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/init.lua b/init.lua index 9059bbe..d06ba80 100644 --- a/init.lua +++ b/init.lua @@ -206,6 +206,7 @@ function connected_chests.register_chest(fromname, data) return false end if chest.tube then + chest.tube = table.copy(chest.tube) chest.tube.connect_sides = {left = 1, back = 1, front = 1, bottom = 1, top = 1} end From 63369ed073c3fb6c4bf0d09a5da27b37f5f49c86 Mon Sep 17 00:00:00 2001 From: DS-Minetest Date: Tue, 29 Aug 2017 18:06:43 +0200 Subject: [PATCH 3/3] :cat2: --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index fba484d..d06ba80 100644 --- a/init.lua +++ b/init.lua @@ -182,7 +182,7 @@ function connected_chests.register_chest(fromname, data) -- the left one contains inventory local chest = {} - local origdef = table.copy(minetest.registered_nodes[fromname]) + local origdef = minetest.registered_nodes[fromname] for i in pairs(origdef) do chest[i] = rawget(origdef, i) end