player update handled in new thread

This commit is contained in:
2025-01-01 10:31:46 -06:00
parent df7a106237
commit 1098265145
13 changed files with 95 additions and 35 deletions
@@ -30,7 +30,7 @@ public class AttributeEffectModifier extends AbstractEffectModifier {
@Override
public void applyBonus(AbstractCharacter ac, int trains) {
ac.update();
ac.update(false);
Float amount = 0f;
PlayerBonuses bonus = ac.getBonuses();
if (this.percentMod != 0f) { //Stat Percent Modifiers
@@ -29,7 +29,7 @@ public class HealthRecoverRateEffectModifier extends AbstractEffectModifier {
@Override
public void applyBonus(AbstractCharacter ac, int trains) {
ac.update();
ac.update(false);
Float amount = 0f;
PlayerBonuses bonus = ac.getBonuses();
if (this.useRampAdd)
@@ -39,7 +39,7 @@ public class NoModEffectModifier extends AbstractEffectModifier {
PlayerCharacter flyer = (PlayerCharacter) ac;
if (flyer.getAltitude() > 0)
flyer.update();
flyer.update(false);
PlayerCharacter.GroundPlayer(flyer);
break;