mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
fix enter/exit dreamworld
This commit is contained in:
parent
0f99ae1dbb
commit
8733e9f758
@ -35,12 +35,9 @@ internal class EnterDreamWorldMessage : QSBWorldObjectMessage<QSBDreamLanternIte
|
||||
player.InDreamWorld = true;
|
||||
player.AssignedSimulationLantern = WorldObject;
|
||||
|
||||
if (QSBCore.IsHost)
|
||||
foreach (var ghost in QSBWorldSync.GetWorldObjects<QSBGhostBrain>())
|
||||
{
|
||||
foreach (var ghost in QSBWorldSync.GetWorldObjects<QSBGhostBrain>())
|
||||
{
|
||||
ghost.OnEnterDreamWorld(player);
|
||||
}
|
||||
ghost.OnEnterDreamWorld(player);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -30,12 +30,9 @@ internal class ExitDreamWorldMessage : QSBMessage
|
||||
player.InDreamWorld = false;
|
||||
player.AssignedSimulationLantern = null;
|
||||
|
||||
if (QSBCore.IsHost)
|
||||
foreach (var ghost in QSBWorldSync.GetWorldObjects<QSBGhostBrain>())
|
||||
{
|
||||
foreach (var ghost in QSBWorldSync.GetWorldObjects<QSBGhostBrain>())
|
||||
{
|
||||
ghost.OnExitDreamWorld(player);
|
||||
}
|
||||
ghost.OnExitDreamWorld(player);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user