From 2bcbd41026da91eb3885ebdcf6f28b2786c510e4 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 9 Nov 2023 02:16:38 +0000 Subject: [PATCH] Format code [skip actions] --- .../java/emu/grasscutter/game/ability/AbilityManager.java | 4 ++-- src/main/java/emu/grasscutter/game/tower/TowerManager.java | 2 +- src/main/java/emu/grasscutter/game/world/Scene.java | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/emu/grasscutter/game/ability/AbilityManager.java b/src/main/java/emu/grasscutter/game/ability/AbilityManager.java index 6be1c33a9..b5bef4276 100644 --- a/src/main/java/emu/grasscutter/game/ability/AbilityManager.java +++ b/src/main/java/emu/grasscutter/game/ability/AbilityManager.java @@ -23,7 +23,6 @@ import emu.grasscutter.server.event.player.PlayerUseSkillEvent; import io.netty.util.concurrent.FastThreadLocalThread; import java.util.*; import java.util.concurrent.*; -import java.util.function.Consumer; import lombok.Getter; public final class AbilityManager extends BasePlayerManager { @@ -103,7 +102,8 @@ public final class AbilityManager extends BasePlayerManager { this.abilityInvulnerable = true; this.player .getEnergyManager() - .handleEvtDoSkillSuccNotify(this.player.getSession(), this.burstSkillId, this.burstCasterId); + .handleEvtDoSkillSuccNotify( + this.player.getSession(), this.burstSkillId, this.burstCasterId); this.removePendingEnergyClear(); } } diff --git a/src/main/java/emu/grasscutter/game/tower/TowerManager.java b/src/main/java/emu/grasscutter/game/tower/TowerManager.java index aeb006be5..505543c12 100644 --- a/src/main/java/emu/grasscutter/game/tower/TowerManager.java +++ b/src/main/java/emu/grasscutter/game/tower/TowerManager.java @@ -29,7 +29,7 @@ public class TowerManager extends BasePlayerManager { return this.getTowerData().currentFloorId; } - /** floor number: 1 - 12 **/ + /** floor number: 1 - 12 * */ public int getCurrentFloorNumber() { return GameData.getTowerFloorDataMap().get(getCurrentFloorId()).getFloorIndex(); } diff --git a/src/main/java/emu/grasscutter/game/world/Scene.java b/src/main/java/emu/grasscutter/game/world/Scene.java index baa6d0aaf..98047d1fc 100644 --- a/src/main/java/emu/grasscutter/game/world/Scene.java +++ b/src/main/java/emu/grasscutter/game/world/Scene.java @@ -771,8 +771,7 @@ public class Scene { if (getDungeonManager() != null) { return getDungeonManager().getLevelForMonster(configId); } else if (getWorld().getWorldLevel() > 0) { - var worldLevelData = - GameData.getWorldLevelDataMap().get(getWorld().getWorldLevel()); + var worldLevelData = GameData.getWorldLevelDataMap().get(getWorld().getWorldLevel()); if (worldLevelData != null) { return worldLevelData.getMonsterLevel();