Run spotlessApply

also set line endings to native, no more line conflict errors!
This commit is contained in:
KingRainbow44
2023-05-02 14:00:00 +01:00
Unverified
parent 4f1136ce2d
commit d32f6982be
1426 changed files with 1307543 additions and 1212705 deletions
@@ -490,14 +490,16 @@ public final class ResourceLoader {
private static void loadQuests() {
try (var files = Files.list(getResourcePath("BinOutput/Quest/"))) {
files.forEach(path -> {
try {
val mainQuest = JsonUtils.loadToClass(path, MainQuestData.class);
GameData.getMainQuestDataMap().put(mainQuest.getId(), mainQuest);
files.forEach(
path -> {
try {
val mainQuest = JsonUtils.loadToClass(path, MainQuestData.class);
GameData.getMainQuestDataMap().put(mainQuest.getId(), mainQuest);
mainQuest.onLoad(); // Load the quest data.
} catch (IOException ignored) { }
});
mainQuest.onLoad(); // Load the quest data.
} catch (IOException ignored) {
}
});
} catch (IOException e) {
Grasscutter.getLogger().error("Quest data missing");
return;