mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-28 09:02:59 +00:00
Fix double connects_to registation in fences
This commit is contained in:
parent
793803aa42
commit
b4e7fc8179
1 changed files with 5 additions and 1 deletions
|
@ -25,7 +25,11 @@ mcl_fences.register_fence = function(id, fence_name, texture, groups, hardness,
|
||||||
if cgroups == nil then cgroups = {} end
|
if cgroups == nil then cgroups = {} end
|
||||||
cgroups.fence = 1
|
cgroups.fence = 1
|
||||||
cgroups.deco_block = 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
|
local fence_id = minetest.get_current_modname()..":"..id
|
||||||
table.insert(connects_to, "group:solid")
|
table.insert(connects_to, "group:solid")
|
||||||
table.insert(connects_to, "group:fence_gate")
|
table.insert(connects_to, "group:fence_gate")
|
||||||
|
|
Loading…
Reference in a new issue