diff --git a/src/main/java/emu/grasscutter/game/avatar/Avatar.java b/src/main/java/emu/grasscutter/game/avatar/Avatar.java index 572bfb173..96a7b8478 100644 --- a/src/main/java/emu/grasscutter/game/avatar/Avatar.java +++ b/src/main/java/emu/grasscutter/game/avatar/Avatar.java @@ -360,7 +360,9 @@ public class Avatar { } public void setCurrentEnergy() { - this.setCurrentEnergy(this.currentEnergy); + if (GAME_OPTIONS.energyUsage) { + this.setCurrentEnergy(this.currentEnergy); + } } public void setCurrentEnergy(float currentEnergy) { @@ -378,9 +380,11 @@ public class Avatar { } public void setCurrentEnergy(FightProperty curEnergyProp, float currentEnergy) { - this.setFightProperty(curEnergyProp, currentEnergy); - this.currentEnergy = currentEnergy; - this.save(); + if (GAME_OPTIONS.energyUsage) { + this.setFightProperty(curEnergyProp, currentEnergy); + this.currentEnergy = currentEnergy; + this.save(); + } } public Int2FloatOpenHashMap getFightProperties() {