mirror of
https://github.com/minetest-mods/areas.git
synced 2024-12-22 04:42:23 +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
|
||||
local cids = self:getChildren(id)
|
||||
for _, cid in pairs(cids) do
|
||||
self:removeArea(cid, true)
|
||||
self:remove(cid, true)
|
||||
end
|
||||
else
|
||||
-- Update parents
|
||||
|
Loading…
Reference in New Issue
Block a user