From cf574e99cbae3e58ff5c19d4364247e96358b6b1 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 1 Oct 2023 05:41:41 +0000 Subject: [PATCH] Format code [skip actions] --- .../game/managers/energy/EnergyManager.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/emu/grasscutter/game/managers/energy/EnergyManager.java b/src/main/java/emu/grasscutter/game/managers/energy/EnergyManager.java index 72f178a40..ead4f49f0 100644 --- a/src/main/java/emu/grasscutter/game/managers/energy/EnergyManager.java +++ b/src/main/java/emu/grasscutter/game/managers/energy/EnergyManager.java @@ -1,5 +1,7 @@ package emu.grasscutter.game.managers.energy; +import static emu.grasscutter.config.Configuration.GAME_OPTIONS; + import com.google.protobuf.InvalidProtocolBufferException; import emu.grasscutter.Grasscutter; import emu.grasscutter.data.*; @@ -21,12 +23,9 @@ import emu.grasscutter.net.proto.PropChangeReasonOuterClass.PropChangeReason; import emu.grasscutter.server.game.GameSession; import it.unimi.dsi.fastutil.ints.*; import it.unimi.dsi.fastutil.objects.*; -import lombok.Getter; - import java.util.*; import java.util.concurrent.ThreadLocalRandom; - -import static emu.grasscutter.config.Configuration.GAME_OPTIONS; +import lombok.Getter; public class EnergyManager extends BasePlayerManager { private static final Int2ObjectMap> energyDropData = @@ -398,8 +397,7 @@ public class EnergyManager extends BasePlayerManager { var skillDepot = entityAvatar.getAvatar().getSkillDepot(); if (skillDepot != null) { entityAvatar.addEnergy( - skillDepot.getEnergySkillData().getCostElemVal(), - changeReason, isFlat); + skillDepot.getEnergySkillData().getCostElemVal(), changeReason, isFlat); } } }