This commit is contained in:
JohnCorby 2023-09-19 17:32:03 -07:00
parent ae62a11aac
commit 7611711206
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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;