diff --git a/Automatics/Patches.cs b/Automatics/Patches.cs index e9efe1f..07a711f 100644 --- a/Automatics/Patches.cs +++ b/Automatics/Patches.cs @@ -103,7 +103,7 @@ private static void Terminal_InitTerminal_Postfix(bool __state) [HarmonyPatch(typeof(Container), "Awake")] private static void Container_Awake_Postfix(Container __instance, ZNetView ___m_nview) { - if (___m_nview.GetZDO() != null) + if (___m_nview && ___m_nview.GetZDO() != null) __instance.gameObject.AddComponent(); }