From 141ea2f0a76b927d88ca5a2658fda23842a0e193 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 27 Jun 2023 20:00:07 +0100 Subject: [PATCH] For compatibility, ensure that we also clear the legacy worldedit region too --- worldeditadditions_core/core/pos_marker_manage.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/worldeditadditions_core/core/pos_marker_manage.lua b/worldeditadditions_core/core/pos_marker_manage.lua index 8b553ae..e9412d0 100644 --- a/worldeditadditions_core/core/pos_marker_manage.lua +++ b/worldeditadditions_core/core/pos_marker_manage.lua @@ -77,5 +77,9 @@ wea_c.pos:addEventListener("clear", function(event) wea_c.entities.pos_marker.delete(entity) end end + -- For compatibility, ensure that we also clear the legacy worldedit region too + if worldedit and worldedit.marker_update then + worldedit.marker_update(event.player_name) + end position_entities[event.player_name] = nil end) \ No newline at end of file