mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-10-31 21:33:02 +00:00
For compatibility, ensure that we also clear the legacy worldedit region too
This commit is contained in:
parent
bfecc2da80
commit
141ea2f0a7
1 changed files with 4 additions and 0 deletions
|
@ -77,5 +77,9 @@ wea_c.pos:addEventListener("clear", function(event)
|
||||||
wea_c.entities.pos_marker.delete(entity)
|
wea_c.entities.pos_marker.delete(entity)
|
||||||
end
|
end
|
||||||
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
|
position_entities[event.player_name] = nil
|
||||||
end)
|
end)
|
Loading…
Reference in a new issue