From ca5e33c78174586b5a0c8c08927f27f8659efdc7 Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Wed, 17 May 2023 00:31:33 -0400 Subject: [PATCH] Move more group loading to `trace` --- src/main/java/emu/grasscutter/game/world/Scene.java | 11 ++++++----- .../server/packet/recv/HandlerEnterSceneDoneReq.java | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/java/emu/grasscutter/game/world/Scene.java b/src/main/java/emu/grasscutter/game/world/Scene.java index cff8e5e2b..b9c5235eb 100644 --- a/src/main/java/emu/grasscutter/game/world/Scene.java +++ b/src/main/java/emu/grasscutter/game/world/Scene.java @@ -41,14 +41,15 @@ import emu.grasscutter.server.packet.send.*; import emu.grasscutter.utils.KahnsSort; import emu.grasscutter.utils.Position; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; +import lombok.Getter; +import lombok.Setter; +import lombok.val; + +import javax.annotation.Nullable; import java.util.*; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.CopyOnWriteArrayList; import java.util.stream.Collectors; -import javax.annotation.Nullable; -import lombok.Getter; -import lombok.Setter; -import lombok.val; public final class Scene { @Getter private final World world; @@ -978,7 +979,7 @@ public final class Scene { groups.forEach( g -> scriptManager.callEvent(new ScriptArgs(g.id, EventType.EVENT_GROUP_LOAD, g.id))); - Grasscutter.getLogger().debug("Scene {} loaded {} group(s)", this.getId(), groups.size()); + Grasscutter.getLogger().trace("Scene {} loaded {} group(s)", this.getId(), groups.size()); } public void unloadGroup(SceneBlock block, int group_id) { diff --git a/src/main/java/emu/grasscutter/server/packet/recv/HandlerEnterSceneDoneReq.java b/src/main/java/emu/grasscutter/server/packet/recv/HandlerEnterSceneDoneReq.java index a1c82eaf1..1164dc35e 100644 --- a/src/main/java/emu/grasscutter/server/packet/recv/HandlerEnterSceneDoneReq.java +++ b/src/main/java/emu/grasscutter/server/packet/recv/HandlerEnterSceneDoneReq.java @@ -40,7 +40,7 @@ public class HandlerEnterSceneDoneReq extends PacketHandler { session.getPlayer().getScene().loadGroupForQuest(questGroupSuites); Grasscutter.getLogger() - .debug( + .trace( "Loaded Scene {} Quest(s) Groupsuite(s): {}", session.getPlayer().getSceneId(), questGroupSuites);