mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-09 20:32:57 +08:00
Format code [skip actions]
This commit is contained in:
parent
f17339f1b6
commit
27d495742d
@ -22,8 +22,8 @@ import emu.grasscutter.game.props.*;
|
|||||||
import emu.grasscutter.game.quest.QuestGroupSuite;
|
import emu.grasscutter.game.quest.QuestGroupSuite;
|
||||||
import emu.grasscutter.game.world.data.TeleportProperties;
|
import emu.grasscutter.game.world.data.TeleportProperties;
|
||||||
import emu.grasscutter.net.packet.BasePacket;
|
import emu.grasscutter.net.packet.BasePacket;
|
||||||
import emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult;
|
|
||||||
import emu.grasscutter.net.proto.*;
|
import emu.grasscutter.net.proto.*;
|
||||||
|
import emu.grasscutter.net.proto.AttackResultOuterClass.AttackResult;
|
||||||
import emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType;
|
import emu.grasscutter.net.proto.VisionTypeOuterClass.VisionType;
|
||||||
import emu.grasscutter.scripts.*;
|
import emu.grasscutter.scripts.*;
|
||||||
import emu.grasscutter.scripts.constants.EventType;
|
import emu.grasscutter.scripts.constants.EventType;
|
||||||
@ -33,12 +33,11 @@ import emu.grasscutter.server.event.player.PlayerTeleportEvent;
|
|||||||
import emu.grasscutter.server.packet.send.*;
|
import emu.grasscutter.server.packet.send.*;
|
||||||
import emu.grasscutter.utils.objects.KahnsSort;
|
import emu.grasscutter.utils.objects.KahnsSort;
|
||||||
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
|
import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
|
||||||
import lombok.*;
|
|
||||||
|
|
||||||
import javax.annotation.Nullable;
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.concurrent.*;
|
import java.util.concurrent.*;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
import javax.annotation.Nullable;
|
||||||
|
import lombok.*;
|
||||||
|
|
||||||
public final class Scene {
|
public final class Scene {
|
||||||
@Getter private final World world;
|
@Getter private final World world;
|
||||||
|
@ -37,15 +37,11 @@ public class HandlerEnterSceneDoneReq extends PacketHandler {
|
|||||||
player.getScene().loadNpcForPlayerEnter(player);
|
player.getScene().loadNpcForPlayerEnter(player);
|
||||||
|
|
||||||
// notify client to load the npc for quest
|
// notify client to load the npc for quest
|
||||||
var questGroupSuites =
|
var questGroupSuites = player.getQuestManager().getSceneGroupSuite(player.getSceneId());
|
||||||
player.getQuestManager().getSceneGroupSuite(player.getSceneId());
|
|
||||||
|
|
||||||
player.getScene().loadGroupForQuest(questGroupSuites);
|
player.getScene().loadGroupForQuest(questGroupSuites);
|
||||||
Grasscutter.getLogger()
|
Grasscutter.getLogger()
|
||||||
.trace(
|
.trace("Loaded Scene {} Quest(s) Groupsuite(s): {}", player.getSceneId(), questGroupSuites);
|
||||||
"Loaded Scene {} Quest(s) Groupsuite(s): {}",
|
|
||||||
player.getSceneId(),
|
|
||||||
questGroupSuites);
|
|
||||||
session.send(new PacketGroupSuiteNotify(questGroupSuites));
|
session.send(new PacketGroupSuiteNotify(questGroupSuites));
|
||||||
|
|
||||||
// Reset timer for sending player locations
|
// Reset timer for sending player locations
|
||||||
|
Loading…
Reference in New Issue
Block a user