This commit is contained in:
Mister_Nebula 2020-12-19 13:31:05 +00:00
parent 2bc1167b0a
commit 983832193d
3 changed files with 17 additions and 1 deletions

View File

@ -163,6 +163,10 @@ namespace QSB.Animation
public void SetSuitState(bool state)
{
if (!Player.IsReady)
{
return;
}
if (state)
{
SuitUp();

View File

@ -34,7 +34,7 @@ namespace QSB.Animation.Events
var player = QSBPlayerManager.GetPlayer(message.AboutId);
player?.UpdateState(State.Suit, message.ToggleValue);
if (!QSBCore.HasWokenUp)
if (!QSBCore.HasWokenUp || !player.IsReady)
{
return;
}

View File

@ -24,6 +24,18 @@ namespace QSB.OrbSync.Events
ObjectId = id
};
public override void OnReceiveLocal(bool server, WorldObjectMessage message)
{
if (server)
{
HandleServer(message);
}
else
{
HandleClient(message);
}
}
public override void OnReceiveRemote(bool server, WorldObjectMessage message)
{
if (server)