mirror of
https://github.com/minetest-mods/areas.git
synced 2024-12-22 12:52:22 +01:00
Fix crash with recursive_remove_areas
This commit is contained in:
parent
8765a5e619
commit
5f68c111dc
@ -38,7 +38,7 @@ function areas:remove(id, recurse)
|
|||||||
-- Recursively find child entries and remove them
|
-- Recursively find child entries and remove them
|
||||||
local cids = self:getChildren(id)
|
local cids = self:getChildren(id)
|
||||||
for _, cid in pairs(cids) do
|
for _, cid in pairs(cids) do
|
||||||
self:removeArea(cid, true)
|
self:remove(cid, true)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
-- Update parents
|
-- Update parents
|
||||||
|
Loading…
Reference in New Issue
Block a user