diff --git a/NebulaPatcher/Patches/Dynamic/Dedicated_Server_Patch.cs b/NebulaPatcher/Patches/Dynamic/Dedicated_Server_Patch.cs index 71d34b552..13c3ceeaf 100644 --- a/NebulaPatcher/Patches/Dynamic/Dedicated_Server_Patch.cs +++ b/NebulaPatcher/Patches/Dynamic/Dedicated_Server_Patch.cs @@ -161,6 +161,14 @@ public static bool DoMeshGeneration_Prefix() return false; } + // Fixes a UI Object reference not set error during headless load due to there being no UI enabled. + [HarmonyPrefix] + [HarmonyPatch(typeof(UICommunicatorIndicator), nameof(UICommunicatorIndicator._OnLateUpdate))] + public static bool UICommunicatorIndicatorOnLateUpdate_Prefix() + { + return false; + } + [HarmonyPostfix] [HarmonyPatch(typeof(PlanetATField), nameof(PlanetATField.RecalculatePhysicsShape))] public static void RecalculatePhysicsShape_Postfix(PlanetATField __instance)