|
|
@ -21,7 +21,7 @@ if minetest.get_modpath("areas") then |
|
|
|
areas:registerOnRemove(function(id) |
|
|
|
local area = areas.areas[id] |
|
|
|
local area_id = "a"..tostring(id) |
|
|
|
local protectors_in_area = minetest.find_nodes_in_area(area.pos1, area.pos2, {"creative_regions:"}) |
|
|
|
local protectors_in_area = minetest.find_nodes_in_area(area.pos1, area.pos2, {"creative_regions:protector_nofly", "creative_regions:protector_arena"}) |
|
|
|
for pos in ipairs(protectors_in_area) do |
|
|
|
local meta = minetest.get_meta(pos) |
|
|
|
local stored_id = meta:get_string("area_id") |
|
|
|