mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 13:58:51 +02:00
Merge pull request #9064 from birarda/mod-overlay-cleanup
fix kick and mute overlay cleanup
This commit is contained in:
commit
3d5a178a1d
1 changed files with 8 additions and 8 deletions
|
@ -166,9 +166,9 @@ AvatarList.avatarRemovedEvent.connect(function(avatarID){
|
||||||
if (isShowingOverlays) {
|
if (isShowingOverlays) {
|
||||||
// we are currently showing overlays and an avatar just went away
|
// we are currently showing overlays and an avatar just went away
|
||||||
|
|
||||||
// first remove the rendered overlay
|
// first remove the rendered overlays
|
||||||
for (var overlay in modOverlays[avatarID]) {
|
for (var j = 0; j < modOverlays[avatarID].length; ++j) {
|
||||||
Overlays.deleteOverlay(overlay);
|
Overlays.deleteOverlay(modOverlays[avatarID][j]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// delete the saved ID of the overlay from our mod overlays object
|
// delete the saved ID of the overlay from our mod overlays object
|
||||||
|
|
Loading…
Reference in a new issue