From 44211c1febfb7e5b2b470377785344219d1f5d43 Mon Sep 17 00:00:00 2001 From: "Nick J. Connors" Date: Sun, 6 Feb 2022 11:15:40 -0500 Subject: [PATCH] Null check --- NewHorizons/Builder/Props/DialogueBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NewHorizons/Builder/Props/DialogueBuilder.cs b/NewHorizons/Builder/Props/DialogueBuilder.cs index 76e5d95d..79ebaa44 100644 --- a/NewHorizons/Builder/Props/DialogueBuilder.cs +++ b/NewHorizons/Builder/Props/DialogueBuilder.cs @@ -16,7 +16,7 @@ namespace NewHorizons.Builder.Props public static void Make(GameObject go, Sector sector, PropModule.DialogueInfo info, IModHelper mod) { - if (PlayerData._currentGameSave.GetPersistentCondition(info.blockAfterPersistentCondition)) return; + if (info.blockAfterPersistentCondition != null && PlayerData._currentGameSave.GetPersistentCondition(info.blockAfterPersistentCondition)) return; var dialogue = MakeConversationZone(go, sector, info, mod); if (info.remoteTriggerPosition != null) MakeRemoteDialogueTrigger(go, sector, info, dialogue);