mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 04:12:54 +08:00
Move more group loading to trace
This commit is contained in:
parent
6a0cb2732c
commit
ca5e33c781
@ -41,14 +41,15 @@ import emu.grasscutter.server.packet.send.*;
|
|||||||
import emu.grasscutter.utils.KahnsSort;
|
import emu.grasscutter.utils.KahnsSort;
|
||||||
import emu.grasscutter.utils.Position;
|
import emu.grasscutter.utils.Position;
|
||||||
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
|
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.*;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.concurrent.CopyOnWriteArrayList;
|
import java.util.concurrent.CopyOnWriteArrayList;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
import javax.annotation.Nullable;
|
|
||||||
import lombok.Getter;
|
|
||||||
import lombok.Setter;
|
|
||||||
import lombok.val;
|
|
||||||
|
|
||||||
public final class Scene {
|
public final class Scene {
|
||||||
@Getter private final World world;
|
@Getter private final World world;
|
||||||
@ -978,7 +979,7 @@ public final class Scene {
|
|||||||
groups.forEach(
|
groups.forEach(
|
||||||
g -> scriptManager.callEvent(new ScriptArgs(g.id, EventType.EVENT_GROUP_LOAD, g.id)));
|
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) {
|
public void unloadGroup(SceneBlock block, int group_id) {
|
||||||
|
@ -40,7 +40,7 @@ public class HandlerEnterSceneDoneReq extends PacketHandler {
|
|||||||
|
|
||||||
session.getPlayer().getScene().loadGroupForQuest(questGroupSuites);
|
session.getPlayer().getScene().loadGroupForQuest(questGroupSuites);
|
||||||
Grasscutter.getLogger()
|
Grasscutter.getLogger()
|
||||||
.debug(
|
.trace(
|
||||||
"Loaded Scene {} Quest(s) Groupsuite(s): {}",
|
"Loaded Scene {} Quest(s) Groupsuite(s): {}",
|
||||||
session.getPlayer().getSceneId(),
|
session.getPlayer().getSceneId(),
|
||||||
questGroupSuites);
|
questGroupSuites);
|
||||||
|
Loading…
Reference in New Issue
Block a user