mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
goof (optimization)
This commit is contained in:
parent
77387ffb2a
commit
8c055f96c5
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user