ShipDamageController_OnImpact NRE

This commit is contained in:
JohnCorby 2021-12-12 03:00:20 -08:00
parent 767d2d0318
commit a272050b8b

View File

@ -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))]