Skip to content

Commit 5a2d314

Browse files
Fix critical autoidx bug
1 parent b7515cd commit 5a2d314

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ModLoader.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,8 @@ private static void GameLogicDataPatch(JObject gld, JObject patch)
516516
case "taskData":
517517
EnumCache<TaskData.Type>.AddMapping(id, (TaskData.Type)autoidx);
518518
break;
519+
default:
520+
continue;
519521
}
520522
Plugin.logger.LogInfo("Created mapping for " + dataType + " with id " + id + " and index " + autoidx);
521523
autoidx++;

0 commit comments

Comments
 (0)