Format code [skip actions]

This commit is contained in:
github-actions 2023-10-26 02:29:17 +00:00
parent f86259a430
commit 9b4ce34f4a
3 changed files with 13 additions and 12 deletions

View File

@ -168,8 +168,7 @@ public final class DungeonSystem extends BaseGameSystem {
dungeonManager.unsetTrialTeam(player);
}
// clean temp team if it has
if (!player.getTeamManager().cleanTemporaryTeam())
{
if (!player.getTeamManager().cleanTemporaryTeam()) {
// no temp team. Will use real current team, but check
// for any dead avatar to prevent switching into them.
player.getTeamManager().checkCurrentAvatarIsAlive(null);

View File

@ -325,12 +325,16 @@ public class World implements Iterable<Player> {
}
public void queueTransferPlayerToScene(Player player, int sceneId, Position pos, int delayMs) {
player.setQueuedTeleport(eventExecutor.submit(() -> {
player.setQueuedTeleport(
eventExecutor.submit(
() -> {
try {
Thread.sleep(delayMs);
transferPlayerToScene(player, sceneId, pos);
} catch (InterruptedException e) {
Grasscutter.getLogger().trace("queueTransferPlayerToScene: teleport to scene {} is interrupted", sceneId);
Grasscutter.getLogger()
.trace(
"queueTransferPlayerToScene: teleport to scene {} is interrupted", sceneId);
}
}));
}

View File

@ -2,7 +2,6 @@ package emu.grasscutter.server.packet.recv;
import emu.grasscutter.net.packet.*;
import emu.grasscutter.net.proto.DungeonDieOptionReqOuterClass.DungeonDieOptionReq;
import emu.grasscutter.net.proto.PlayerDieOptionOuterClass.PlayerDieOption;
import emu.grasscutter.server.game.GameSession;
@Opcodes(PacketOpcodes.DungeonDieOptionReq)
@ -19,4 +18,3 @@ public class HandlerDungeonDieOptionReq extends PacketHandler {
session.getPlayer().sendPacket(new BasePacket(PacketOpcodes.DungeonDieOptionRsp));
}
}