1
0
Fork 0

Fix double connects_to registation in fences

objects
Wuzzy 2017-03-17 05:19:38 +01:00
parent 793803aa42
commit b4e7fc8179
1 changed files with 5 additions and 1 deletions

View File

@ -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")