From 325205cdb934354d7a3b90f44b136b1188c0fe16 Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Mon, 1 Jun 2020 14:53:41 +0200 Subject: [PATCH] fix nodenames to remove --- mod_areas.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_areas.lua b/mod_areas.lua index c99057b..8e5ec46 100644 --- a/mod_areas.lua +++ b/mod_areas.lua @@ -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")