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
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2

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