From 55a0719c12da6b0750b0f7eb25a4c9ee11790e28 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 1 Jun 2023 03:07:37 +0000 Subject: [PATCH] Format code [skip actions] --- .../grasscutter/server/game/GameServer.java | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/main/java/emu/grasscutter/server/game/GameServer.java b/src/main/java/emu/grasscutter/server/game/GameServer.java index 7f6b26e73..485704ba7 100644 --- a/src/main/java/emu/grasscutter/server/game/GameServer.java +++ b/src/main/java/emu/grasscutter/server/game/GameServer.java @@ -1,5 +1,8 @@ package emu.grasscutter.server.game; +import static emu.grasscutter.config.Configuration.*; +import static emu.grasscutter.utils.lang.Language.translate; + import emu.grasscutter.*; import emu.grasscutter.Grasscutter.ServerRunMode; import emu.grasscutter.database.DatabaseHelper; @@ -29,17 +32,13 @@ import emu.grasscutter.server.event.internal.*; import emu.grasscutter.server.event.types.ServerEvent; import emu.grasscutter.server.scheduler.ServerTaskScheduler; import emu.grasscutter.task.TaskMap; -import kcp.highway.*; -import lombok.*; -import org.jetbrains.annotations.NotNull; - import java.net.*; import java.time.*; import java.util.*; import java.util.concurrent.ConcurrentHashMap; - -import static emu.grasscutter.config.Configuration.*; -import static emu.grasscutter.utils.lang.Language.translate; +import kcp.highway.*; +import lombok.*; +import org.jetbrains.annotations.NotNull; @Getter public final class GameServer extends KcpServer implements Iterable { @@ -330,9 +329,11 @@ public final class GameServer extends KcpServer implements Iterable { ServerStopEvent event = new ServerStopEvent(ServerEvent.Type.GAME, OffsetDateTime.now()); event.call(); - this.getPlayers().forEach((uid, player) -> { - player.getSession().close(); - }); + this.getPlayers() + .forEach( + (uid, player) -> { + player.getSession().close(); + }); this.getWorlds().forEach(World::save); }