mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-03-10 07:14:27 +00:00
comment
This commit is contained in:
parent
ae62a11aac
commit
7611711206
@ -12,6 +12,7 @@ public class RaftCarrierOnEntryMessage : QSBWorldObjectMessage<IQSBRaftCarrier,
|
||||
public override void OnReceiveRemote()
|
||||
{
|
||||
// TODO : work out if we can just call RaftCarrier.OnEntry with a right gameobject? tried it with _fluidDetector.gameObject and it didn't work
|
||||
// even tho that is the gameobject with Raft_Detector tag. what?
|
||||
|
||||
var qsbRaft = Data.GetWorldObject<QSBRaft>();
|
||||
var attachedObj = (RaftCarrier)WorldObject.AttachedObject;
|
||||
|
@ -63,6 +63,7 @@ public class RaftPatches : QSBPatch
|
||||
{
|
||||
var raft = hitObj.GetComponentInParent<RaftController>();
|
||||
var qsbRaft = raft.GetWorldObject<QSBRaft>();
|
||||
// owner will handle docking and sends a message telling everyone else to also dock
|
||||
if (!qsbRaft.NetworkBehaviour.isOwned)
|
||||
{
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user