mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-06 01:00:16 +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)
|
public override void OnReceiveRemote(bool server, EnumMessage<ProbeEvent> message)
|
||||||
{
|
{
|
||||||
var player = QSBPlayerManager.GetPlayer(message.AboutId);
|
var player = QSBPlayerManager.GetPlayer(message.AboutId);
|
||||||
|
if (!player.PlayerStates.IsReady || player.Probe == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var probe = player.Probe;
|
var probe = player.Probe;
|
||||||
|
|
||||||
probe.HandleEvent(message.EnumValue);
|
probe.HandleEvent(message.EnumValue);
|
||||||
|
@ -25,6 +25,11 @@ namespace QSB.ProbeSync.Events
|
|||||||
public override void OnReceiveRemote(bool server, FloatMessage message)
|
public override void OnReceiveRemote(bool server, FloatMessage message)
|
||||||
{
|
{
|
||||||
var player = QSBPlayerManager.GetPlayer(message.AboutId);
|
var player = QSBPlayerManager.GetPlayer(message.AboutId);
|
||||||
|
if (!player.PlayerStates.IsReady || player.Probe == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var probe = player.Probe;
|
var probe = player.Probe;
|
||||||
probe.OnStartRetrieve(message.Value);
|
probe.OnStartRetrieve(message.Value);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user