mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-27 22:18:09 +00:00
Format code [skip actions]
This commit is contained in:
parent
f86259a430
commit
9b4ce34f4a
@ -168,8 +168,7 @@ public final class DungeonSystem extends BaseGameSystem {
|
|||||||
dungeonManager.unsetTrialTeam(player);
|
dungeonManager.unsetTrialTeam(player);
|
||||||
}
|
}
|
||||||
// clean temp team if it has
|
// clean temp team if it has
|
||||||
if (!player.getTeamManager().cleanTemporaryTeam())
|
if (!player.getTeamManager().cleanTemporaryTeam()) {
|
||||||
{
|
|
||||||
// no temp team. Will use real current team, but check
|
// no temp team. Will use real current team, but check
|
||||||
// for any dead avatar to prevent switching into them.
|
// for any dead avatar to prevent switching into them.
|
||||||
player.getTeamManager().checkCurrentAvatarIsAlive(null);
|
player.getTeamManager().checkCurrentAvatarIsAlive(null);
|
||||||
|
@ -325,12 +325,16 @@ public class World implements Iterable<Player> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void queueTransferPlayerToScene(Player player, int sceneId, Position pos, int delayMs) {
|
public void queueTransferPlayerToScene(Player player, int sceneId, Position pos, int delayMs) {
|
||||||
player.setQueuedTeleport(eventExecutor.submit(() -> {
|
player.setQueuedTeleport(
|
||||||
|
eventExecutor.submit(
|
||||||
|
() -> {
|
||||||
try {
|
try {
|
||||||
Thread.sleep(delayMs);
|
Thread.sleep(delayMs);
|
||||||
transferPlayerToScene(player, sceneId, pos);
|
transferPlayerToScene(player, sceneId, pos);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
Grasscutter.getLogger().trace("queueTransferPlayerToScene: teleport to scene {} is interrupted", sceneId);
|
Grasscutter.getLogger()
|
||||||
|
.trace(
|
||||||
|
"queueTransferPlayerToScene: teleport to scene {} is interrupted", sceneId);
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,6 @@ package emu.grasscutter.server.packet.recv;
|
|||||||
|
|
||||||
import emu.grasscutter.net.packet.*;
|
import emu.grasscutter.net.packet.*;
|
||||||
import emu.grasscutter.net.proto.DungeonDieOptionReqOuterClass.DungeonDieOptionReq;
|
import emu.grasscutter.net.proto.DungeonDieOptionReqOuterClass.DungeonDieOptionReq;
|
||||||
import emu.grasscutter.net.proto.PlayerDieOptionOuterClass.PlayerDieOption;
|
|
||||||
import emu.grasscutter.server.game.GameSession;
|
import emu.grasscutter.server.game.GameSession;
|
||||||
|
|
||||||
@Opcodes(PacketOpcodes.DungeonDieOptionReq)
|
@Opcodes(PacketOpcodes.DungeonDieOptionReq)
|
||||||
@ -19,4 +18,3 @@ public class HandlerDungeonDieOptionReq extends PacketHandler {
|
|||||||
session.getPlayer().sendPacket(new BasePacket(PacketOpcodes.DungeonDieOptionRsp));
|
session.getPlayer().sendPacket(new BasePacket(PacketOpcodes.DungeonDieOptionRsp));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user