mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-06 01:00:16 +00:00
fix enter/exit dreamworld
This commit is contained in:
parent
0f99ae1dbb
commit
8733e9f758
@ -35,14 +35,11 @@ internal class EnterDreamWorldMessage : QSBWorldObjectMessage<QSBDreamLanternIte
|
|||||||
player.InDreamWorld = true;
|
player.InDreamWorld = true;
|
||||||
player.AssignedSimulationLantern = WorldObject;
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public override void OnReceiveRemote()
|
public override void OnReceiveRemote()
|
||||||
{
|
{
|
||||||
|
@ -30,14 +30,11 @@ internal class ExitDreamWorldMessage : QSBMessage
|
|||||||
player.InDreamWorld = false;
|
player.InDreamWorld = false;
|
||||||
player.AssignedSimulationLantern = null;
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public override void OnReceiveRemote()
|
public override void OnReceiveRemote()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user