mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-04 12:39:52 +00:00
update to reflect save-sync
This commit is contained in:
parent
caffbe2100
commit
d77a490ca6
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OWML.Common;
|
using OWML.Common;
|
||||||
using QSB.ClientServerStateSync;
|
using QSB.ClientServerStateSync;
|
||||||
|
using QSB.ClientServerStateSync.Events;
|
||||||
using QSB.Events;
|
using QSB.Events;
|
||||||
using QSB.Player;
|
using QSB.Player;
|
||||||
using QSB.Player.Events;
|
using QSB.Player.Events;
|
||||||
@ -101,9 +102,9 @@ namespace QSB.Messaging
|
|||||||
if (!player.IsReady
|
if (!player.IsReady
|
||||||
&& player.PlayerId != QSBPlayerManager.LocalPlayerId
|
&& player.PlayerId != QSBPlayerManager.LocalPlayerId
|
||||||
&& player.State is ClientState.AliveInSolarSystem or ClientState.AliveInEye or ClientState.DeadInSolarSystem
|
&& player.State is ClientState.AliveInSolarSystem or ClientState.AliveInEye or ClientState.DeadInSolarSystem
|
||||||
&& msg is not QSBEventRelay { Event: PlayerInformationEvent or PlayerReadyEvent })
|
&& msg is not QSBEventRelay { Event: PlayerInformationEvent or PlayerReadyEvent or RequestStateResyncEvent or ServerStateEvent })
|
||||||
{
|
{
|
||||||
DebugLog.ToConsole($"Warning - Got message from player {msg.From}, but they were not ready. Asking for state resync, just in case.", MessageType.Warning);
|
DebugLog.ToConsole($"Warning - Got message (type:{msg.GetType().Name}) from player {msg.From}, but they were not ready. Asking for state resync, just in case.", MessageType.Warning);
|
||||||
QSBEventManager.FireEvent(EventNames.QSBRequestStateResync);
|
QSBEventManager.FireEvent(EventNames.QSBRequestStateResync);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user