mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-20 15:41:01 +00:00
actually set Remote
This commit is contained in:
parent
e48027e683
commit
679657c803
@ -2,6 +2,7 @@
|
||||
using OWML.Common;
|
||||
using QSB.ClientServerStateSync;
|
||||
using QSB.ClientServerStateSync.Messages;
|
||||
using QSB.Patches;
|
||||
using QSB.Player;
|
||||
using QSB.Player.Messages;
|
||||
using QSB.Player.TransformSync;
|
||||
@ -86,7 +87,9 @@ public static class QSBMessageManager
|
||||
|
||||
if (msg.From != QSBPlayerManager.LocalPlayerId)
|
||||
{
|
||||
QSBPatch.Remote = true;
|
||||
msg.OnReceiveRemote();
|
||||
QSBPatch.Remote = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1,5 +1,6 @@
|
||||
using OWML.Common;
|
||||
using QSB.Messaging;
|
||||
using QSB.Patches;
|
||||
using QSB.Player.Messages;
|
||||
using QSB.PlayerBodySetup.Local;
|
||||
using QSB.PlayerBodySetup.Remote;
|
||||
@ -48,7 +49,9 @@ public class PlayerTransformSync : SectoredTransformSync
|
||||
JoinLeaveSingularity.Create(Player, false);
|
||||
|
||||
// TODO : Maybe move this to a leave event...? Would ensure everything could finish up before removing the player
|
||||
QSBPatch.Remote = true;
|
||||
QSBPlayerManager.OnRemovePlayer?.Invoke(Player);
|
||||
QSBPatch.Remote = false;
|
||||
base.OnStopClient();
|
||||
Player.HudMarker?.Remove();
|
||||
QSBPlayerManager.PlayerList.Remove(Player);
|
||||
|
Loading…
x
Reference in New Issue
Block a user