For compatibility, ensure that we also clear the legacy worldedit region too

This commit is contained in:
Starbeamrainbowlabs 2023-06-27 20:00:07 +01:00
parent bfecc2da80
commit 141ea2f0a7
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 4 additions and 0 deletions

View File

@ -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)