mirror of
https://github.com/minetest-mods/areas.git
synced 2024-12-22 21:02:22 +01:00
Allow adding areas with owner_defs
This commit is contained in:
parent
b3dbbc45f8
commit
25556939f5
@ -142,7 +142,6 @@ if areas.legacy_table then
|
|||||||
return a
|
return a
|
||||||
end,
|
end,
|
||||||
__newindex = function(table, key, value)
|
__newindex = function(table, key, value)
|
||||||
if rawget(areas.areas, key) ~= nil then
|
|
||||||
local a = value
|
local a = value
|
||||||
a.pos1, a.pos2 = {}, {}
|
a.pos1, a.pos2 = {}, {}
|
||||||
a.pos1.x = a.x1
|
a.pos1.x = a.x1
|
||||||
@ -157,7 +156,6 @@ if areas.legacy_table then
|
|||||||
a.id = nil
|
a.id = nil
|
||||||
return rawset(areas.areas, key, a)
|
return rawset(areas.areas, key, a)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user