mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-26 22:22:51 +00:00
don't take effect if energyUsage is false
This commit is contained in:
parent
af381dcf42
commit
5811556630
@ -360,7 +360,9 @@ public class Avatar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setCurrentEnergy() {
|
public void setCurrentEnergy() {
|
||||||
this.setCurrentEnergy(this.currentEnergy);
|
if (GAME_OPTIONS.energyUsage) {
|
||||||
|
this.setCurrentEnergy(this.currentEnergy);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCurrentEnergy(float currentEnergy) {
|
public void setCurrentEnergy(float currentEnergy) {
|
||||||
@ -378,9 +380,11 @@ public class Avatar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void setCurrentEnergy(FightProperty curEnergyProp, float currentEnergy) {
|
public void setCurrentEnergy(FightProperty curEnergyProp, float currentEnergy) {
|
||||||
this.setFightProperty(curEnergyProp, currentEnergy);
|
if (GAME_OPTIONS.energyUsage) {
|
||||||
this.currentEnergy = currentEnergy;
|
this.setFightProperty(curEnergyProp, currentEnergy);
|
||||||
this.save();
|
this.currentEnergy = currentEnergy;
|
||||||
|
this.save();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Int2FloatOpenHashMap getFightProperties() {
|
public Int2FloatOpenHashMap getFightProperties() {
|
||||||
|
Loading…
Reference in New Issue
Block a user