From 0d9116225cb5db01ebaca344bb21fa9c7c984067 Mon Sep 17 00:00:00 2001 From: AnimeGitB Date: Wed, 27 Jul 2022 21:10:32 +0930 Subject: [PATCH] Suppress stacktrace on missing questkeys file --- src/main/java/emu/grasscutter/data/ResourceLoader.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/emu/grasscutter/data/ResourceLoader.java b/src/main/java/emu/grasscutter/data/ResourceLoader.java index 492bea7e9..f618b4969 100644 --- a/src/main/java/emu/grasscutter/data/ResourceLoader.java +++ b/src/main/java/emu/grasscutter/data/ResourceLoader.java @@ -426,6 +426,8 @@ public class ResourceLoader { Int2ObjectMap 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); }