From a272050b8ba3c032893aac11a95e9afcf6455f31 Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Sun, 12 Dec 2021 03:00:20 -0800 Subject: [PATCH] ShipDamageController_OnImpact NRE --- QSB/ShipSync/Patches/ShipPatches.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QSB/ShipSync/Patches/ShipPatches.cs b/QSB/ShipSync/Patches/ShipPatches.cs index 663dc505..279e873d 100644 --- a/QSB/ShipSync/Patches/ShipPatches.cs +++ b/QSB/ShipSync/Patches/ShipPatches.cs @@ -206,7 +206,7 @@ namespace QSB.ShipSync.Patches [HarmonyPrefix] [HarmonyPatch(typeof(ShipDamageController), nameof(ShipDamageController.OnImpact))] public static bool ShipDamageController_OnImpact() - => ShipManager.Instance.HasAuthority; + => ShipManager.Instance && ShipManager.Instance.HasAuthority; [HarmonyPostfix] [HarmonyPatch(typeof(ShipComponent), nameof(ShipComponent.RepairTick))]