mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-30 01:13:38 +01:00
Hotfix for on-login issue
This commit is contained in:
parent
47cd5c15c9
commit
e4f1400a31
@ -69,6 +69,9 @@ public class PlayerData extends SynchronizedDataHolder implements OfflinePlayerD
|
|||||||
/**
|
/**
|
||||||
* Can be null, the {@link #getProfess()} method will return the
|
* Can be null, the {@link #getProfess()} method will return the
|
||||||
* player class, or the default one if this field is null.
|
* player class, or the default one if this field is null.
|
||||||
|
* <p>
|
||||||
|
* NEVER access the player class using this field, you must
|
||||||
|
* use the {@link #getProfess()} method instead
|
||||||
*/
|
*/
|
||||||
@Nullable
|
@Nullable
|
||||||
private PlayerClass profess;
|
private PlayerClass profess;
|
||||||
@ -225,8 +228,8 @@ public class PlayerData extends SynchronizedDataHolder implements OfflinePlayerD
|
|||||||
getMMOPlayerData().getSkillModifierMap().getInstances().forEach(skillModifierInstance -> skillModifierInstance.removeIf(Trigger.STAT_MODIFIER_KEY::equals));
|
getMMOPlayerData().getSkillModifierMap().getInstances().forEach(skillModifierInstance -> skillModifierInstance.removeIf(Trigger.STAT_MODIFIER_KEY::equals));
|
||||||
|
|
||||||
// Experience tables from main class
|
// Experience tables from main class
|
||||||
if (profess.hasExperienceTable())
|
if (getProfess().hasExperienceTable())
|
||||||
profess.getExperienceTable().claimRemovableTrigger(this, profess);
|
getProfess().getExperienceTable().claimRemovableTrigger(this, getProfess());
|
||||||
|
|
||||||
// Experience tables from professions
|
// Experience tables from professions
|
||||||
for (Profession profession : MMOCore.plugin.professionManager.getAll())
|
for (Profession profession : MMOCore.plugin.professionManager.getAll())
|
||||||
|
Loading…
Reference in New Issue
Block a user