Fixed issue #765 about stellium saving issues when switching server.

This commit is contained in:
Ka0rX 2023-03-26 21:14:52 +01:00
parent c59473502f
commit 0bc1837460

View File

@ -121,7 +121,7 @@ public class MMOCoreDataSynchronizer extends DataSynchronizer {
//These should be loaded after to make sure that the MAX_MANA, MAX_STAMINA & MAX_STELLIUM stats are already loaded.
data.setMana(result.getDouble("mana"));
data.setStamina(result.getDouble("stamina"));
data.setStellium(result.getDouble("stamina"));
data.setStellium(result.getDouble("stellium"));
double health = result.getDouble("health");
health = health == 0 ? 20 : health;
health = Math.min(health, data.getPlayer().getAttribute(Attribute.GENERIC_MAX_HEALTH).getValue());