Merge pull request #1586 from Birdulon/development

Suppress stacktrace on missing questkeys file
This commit is contained in:
Magix 2022-07-27 13:29:30 -04:00 committed by GitHub
commit 30540711eb

View File

@ -426,6 +426,8 @@ public class ResourceLoader {
Int2ObjectMap<QuestEncryptionKey> questEncryptionMap = GameData.getMainQuestEncryptionMap();
keys.forEach(key -> questEncryptionMap.put(key.getMainQuestId(), key));
Grasscutter.getLogger().debug("Loaded {} quest keys.", questEncryptionMap.size());
} catch (FileNotFoundException ignored) {
Grasscutter.getLogger().error("Unable to load quest keys - ./resources/QuestEncryptionKeys.json not found.");
} catch (Exception e) {
Grasscutter.getLogger().error("Unable to load quest keys.", e);
}