mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-26 12:08:17 +00:00
Move warn
s for groups to debug
This commit is contained in:
parent
25d582f41e
commit
bb693cd222
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user