From bb693cd222802401f63aa946877b2a56e5831878 Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Thu, 18 May 2023 01:29:28 -0400 Subject: [PATCH] Move `warn`s for groups to `debug` --- .../game/quest/exec/ExecRegisterDynamicGroup.java | 7 +++---- .../game/quest/exec/ExecUnregisterDynamicGroup.java | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/java/emu/grasscutter/game/quest/exec/ExecRegisterDynamicGroup.java b/src/main/java/emu/grasscutter/game/quest/exec/ExecRegisterDynamicGroup.java index 2be843a3c..c2ad9a9b0 100644 --- a/src/main/java/emu/grasscutter/game/quest/exec/ExecRegisterDynamicGroup.java +++ b/src/main/java/emu/grasscutter/game/quest/exec/ExecRegisterDynamicGroup.java @@ -7,7 +7,6 @@ import emu.grasscutter.game.quest.QuestGroupSuite; import emu.grasscutter.game.quest.QuestValueExec; import emu.grasscutter.game.quest.enums.QuestExec; import emu.grasscutter.game.quest.handlers.QuestExecHandler; -import emu.grasscutter.game.world.Scene; @QuestValueExec(QuestExec.QUEST_EXEC_REGISTER_DYNAMIC_GROUP) public class ExecRegisterDynamicGroup extends QuestExecHandler { @@ -17,9 +16,9 @@ public class ExecRegisterDynamicGroup extends QuestExecHandler { var sceneId = Integer.parseInt(paramStr[0]); var groupId = Integer.parseInt(paramStr[1]); - Grasscutter.getLogger().warn("Registering group {}", groupId); + Grasscutter.getLogger().debug("Registering group {}", groupId); - Scene scene = quest.getOwner().getWorld().getSceneById(sceneId); + var scene = quest.getOwner().getWorld().getSceneById(sceneId); if (scene == null) return false; int suiteId = scene.loadDynamicGroup(groupId); @@ -31,7 +30,7 @@ public class ExecRegisterDynamicGroup extends QuestExecHandler { .add(QuestGroupSuite.of().scene(sceneId).group(groupId).suite(suiteId).build()); Grasscutter.getLogger() - .warn("Registered group {}, suite {} in scene {}", groupId, suiteId, scene.getId()); + .debug("Registered group {}, suite {} in scene {}", groupId, suiteId, scene.getId()); return true; } diff --git a/src/main/java/emu/grasscutter/game/quest/exec/ExecUnregisterDynamicGroup.java b/src/main/java/emu/grasscutter/game/quest/exec/ExecUnregisterDynamicGroup.java index 7bd5561f8..822e5c810 100644 --- a/src/main/java/emu/grasscutter/game/quest/exec/ExecUnregisterDynamicGroup.java +++ b/src/main/java/emu/grasscutter/game/quest/exec/ExecUnregisterDynamicGroup.java @@ -18,7 +18,7 @@ public class ExecUnregisterDynamicGroup extends QuestExecHandler { Integer.parseInt(paramStr[1]); // TODO: Goes from 0 to 1, maybe is a boolean. Investigate val scene = quest.getOwner().getScene(); - Grasscutter.getLogger().warn("Unregistering group {}", groupId); + Grasscutter.getLogger().debug("Unregistering group {}", groupId); if (!scene.unregisterDynamicGroup(groupId)) { return false; @@ -30,7 +30,7 @@ public class ExecUnregisterDynamicGroup extends QuestExecHandler { .getQuestGroupSuites() .removeIf(gs -> gs.getGroup() == groupId && gs.getScene() == scene.getId()); - Grasscutter.getLogger().warn("Unregistered group {} in scene {}", groupId, scene.getId()); + Grasscutter.getLogger().debug("Unregistered group {} in scene {}", groupId, scene.getId()); return true; }