From b4e7fc8179745ef737bf6efe4676a87639e42cd6 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 17 Mar 2017 05:19:38 +0100 Subject: [PATCH] Fix double connects_to registation in fences --- mods/ITEMS/mcl_fences/init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_fences/init.lua b/mods/ITEMS/mcl_fences/init.lua index bdb78e6322..f9937152dc 100644 --- a/mods/ITEMS/mcl_fences/init.lua +++ b/mods/ITEMS/mcl_fences/init.lua @@ -25,7 +25,11 @@ mcl_fences.register_fence = function(id, fence_name, texture, groups, hardness, if cgroups == nil then cgroups = {} end cgroups.fence = 1 cgroups.deco_block = 1 - if connects_to == nil then connects_to = {} end + if connects_to == nil then + connects_to = {} + else + connects_to = table.copy(connects_to) + end local fence_id = minetest.get_current_modname()..":"..id table.insert(connects_to, "group:solid") table.insert(connects_to, "group:fence_gate")