Format code [skip actions]

This commit is contained in:
github-actions 2023-05-18 00:55:57 +00:00
parent 18bc68774c
commit 67364dc867

View File

@ -1,5 +1,7 @@
package emu.grasscutter.game.world; package emu.grasscutter.game.world;
import static emu.grasscutter.server.event.player.PlayerTeleportEvent.TeleportType.SCRIPT;
import emu.grasscutter.data.GameData; import emu.grasscutter.data.GameData;
import emu.grasscutter.data.excels.dungeon.DungeonData; import emu.grasscutter.data.excels.dungeon.DungeonData;
import emu.grasscutter.game.player.Player; import emu.grasscutter.game.player.Player;
@ -22,16 +24,13 @@ import emu.grasscutter.utils.Position;
import it.unimi.dsi.fastutil.ints.Int2ObjectMap; import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
import it.unimi.dsi.fastutil.ints.Int2ObjectMaps; import it.unimi.dsi.fastutil.ints.Int2ObjectMaps;
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
import lombok.Getter;
import lombok.val;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import lombok.Getter;
import static emu.grasscutter.server.event.player.PlayerTeleportEvent.TeleportType.SCRIPT; import lombok.val;
public final class World implements Iterable<Player> { public final class World implements Iterable<Player> {
@Getter private final GameServer server; @Getter private final GameServer server;
@ -536,8 +535,8 @@ public final class World implements Iterable<Player> {
this.timeLocked = locked; this.timeLocked = locked;
// Notify players of the locking. // Notify players of the locking.
this.getPlayers().forEach(player -> this.getPlayers()
player.setProperty(PlayerProperty.PROP_IS_GAME_TIME_LOCKED, locked)); .forEach(player -> player.setProperty(PlayerProperty.PROP_IS_GAME_TIME_LOCKED, locked));
} }
@Override @Override