From 7611711206f154d42e0104bf9643ae1287d9e915 Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Tue, 19 Sep 2023 17:32:03 -0700 Subject: [PATCH] comment --- .../RaftSync/Messages/RaftCarrierOnEntryMessage.cs | 1 + QSB/EchoesOfTheEye/RaftSync/Patches/RaftPatches.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/QSB/EchoesOfTheEye/RaftSync/Messages/RaftCarrierOnEntryMessage.cs b/QSB/EchoesOfTheEye/RaftSync/Messages/RaftCarrierOnEntryMessage.cs index a547b9dfe..24e7e4309 100644 --- a/QSB/EchoesOfTheEye/RaftSync/Messages/RaftCarrierOnEntryMessage.cs +++ b/QSB/EchoesOfTheEye/RaftSync/Messages/RaftCarrierOnEntryMessage.cs @@ -12,6 +12,7 @@ public RaftCarrierOnEntryMessage(QSBRaft raft) : base(raft.ObjectId) { } 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(); var attachedObj = (RaftCarrier)WorldObject.AttachedObject; diff --git a/QSB/EchoesOfTheEye/RaftSync/Patches/RaftPatches.cs b/QSB/EchoesOfTheEye/RaftSync/Patches/RaftPatches.cs index 72a232209..e9dfdae53 100644 --- a/QSB/EchoesOfTheEye/RaftSync/Patches/RaftPatches.cs +++ b/QSB/EchoesOfTheEye/RaftSync/Patches/RaftPatches.cs @@ -63,6 +63,7 @@ private static bool RaftCarrier_OnEntry(RaftCarrier __instance, GameObject hitOb { var raft = hitObj.GetComponentInParent(); var qsbRaft = raft.GetWorldObject(); + // owner will handle docking and sends a message telling everyone else to also dock if (!qsbRaft.NetworkBehaviour.isOwned) { return false;