mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-04 02:47:22 +00:00
dont do probe events if not loaded
This commit is contained in:
parent
063a6d0705
commit
ec9a5cdbb9
@ -25,6 +25,11 @@ namespace QSB.ProbeSync.Events
|
||||
public override void OnReceiveRemote(bool server, EnumMessage<ProbeEvent> message)
|
||||
{
|
||||
var player = QSBPlayerManager.GetPlayer(message.AboutId);
|
||||
if (!player.PlayerStates.IsReady || player.Probe == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var probe = player.Probe;
|
||||
|
||||
probe.HandleEvent(message.EnumValue);
|
||||
|
@ -25,6 +25,11 @@ namespace QSB.ProbeSync.Events
|
||||
public override void OnReceiveRemote(bool server, FloatMessage message)
|
||||
{
|
||||
var player = QSBPlayerManager.GetPlayer(message.AboutId);
|
||||
if (!player.PlayerStates.IsReady || player.Probe == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var probe = player.Probe;
|
||||
probe.OnStartRetrieve(message.Value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user