From c7b9ae28259fc4e572dba3b8044166454f4eb0ce Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Mon, 20 Feb 2023 17:39:45 +0530 Subject: [PATCH] by default mission type is custom if non existent --- src/Mission.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mission.hx b/src/Mission.hx index d06613ad..139b19a0 100644 --- a/src/Mission.hx +++ b/src/Mission.hx @@ -62,7 +62,7 @@ class Mission { if (missionInfo.goldtime != null) { mission.goldTime = MisParser.parseNumber(missionInfo.goldtime) / 1000; } - mission.type = missionInfo.type.toLowerCase(); + mission.type = missionInfo.type != null ? missionInfo.type.toLowerCase() : "custom"; mission.missionInfo = missionInfo; return mission; }