goof (optimization)

This commit is contained in:
Mister_Nebula 2022-05-27 05:59:10 +01:00
parent 77387ffb2a
commit 8c055f96c5
2 changed files with 2 additions and 10 deletions

View File

@ -58,11 +58,7 @@ internal class EnterDreamWorldMessage : QSBWorldObjectMessage<QSBDreamLanternIte
foreach (var ghost in QSBWorldSync.GetWorldObjects<QSBGhostBrain>())
{
ghost.OnEnterDreamWorld(player);
if (QSBPlayerManager.PlayerList.Count(x => x.InDreamWorld) == 1)
{
ghost.GetEffects().OnSectorOccupantsUpdated();
}
ghost.GetEffects().OnSectorOccupantsUpdated();
}
}
}

View File

@ -48,11 +48,7 @@ internal class ExitDreamWorldMessage : QSBMessage
foreach (var ghost in QSBWorldSync.GetWorldObjects<QSBGhostBrain>())
{
ghost.OnExitDreamWorld(player);
if (QSBPlayerManager.PlayerList.Count(x => x.InDreamWorld) == 0)
{
ghost.GetEffects().OnSectorOccupantsUpdated();
}
ghost.GetEffects().OnSectorOccupantsUpdated();
}
}
}