From 5368d6548aa826e6326f6cfd0f4e9f716c6efe41 Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Thu, 6 Oct 2022 19:50:01 -0700 Subject: [PATCH] revert authority from model ship --- QSB/QSBNetworkManager.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/QSB/QSBNetworkManager.cs b/QSB/QSBNetworkManager.cs index 8d0e01df..ce32dfb9 100644 --- a/QSB/QSBNetworkManager.cs +++ b/QSB/QSBNetworkManager.cs @@ -358,6 +358,15 @@ public class QSBNetworkManager : NetworkManager, IAddComponentOnStart identity.SetAuthority(QSBPlayerManager.LocalPlayerId); } } + // revert authority from model ship + if (ModelShipTransformSync.LocalInstance != null) + { + var identity = ModelShipTransformSync.LocalInstance.netIdentity; + if (identity != null && identity.connectionToClient == conn) + { + identity.SetAuthority(QSBPlayerManager.LocalPlayerId); + } + } // stop dragging for the orbs this player was dragging // why tf is this here instead of QSBOrb.OnPlayerLeave?