mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-25 16:53:22 +08:00
Suppress stacktrace on missing questkeys file
This commit is contained in:
parent
6ba4846e58
commit
0d9116225c
@ -426,6 +426,8 @@ public class ResourceLoader {
|
|||||||
Int2ObjectMap<QuestEncryptionKey> questEncryptionMap = GameData.getMainQuestEncryptionMap();
|
Int2ObjectMap<QuestEncryptionKey> questEncryptionMap = GameData.getMainQuestEncryptionMap();
|
||||||
keys.forEach(key -> questEncryptionMap.put(key.getMainQuestId(), key));
|
keys.forEach(key -> questEncryptionMap.put(key.getMainQuestId(), key));
|
||||||
Grasscutter.getLogger().debug("Loaded {} quest keys.", questEncryptionMap.size());
|
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) {
|
} catch (Exception e) {
|
||||||
Grasscutter.getLogger().error("Unable to load quest keys.", e);
|
Grasscutter.getLogger().error("Unable to load quest keys.", e);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user