mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2024-11-24 00:15:16 +01:00
Fixed actionbars not displaying if class actionsbars were empty
This commit is contained in:
parent
9c48b96f18
commit
0b869c4be5
@ -90,7 +90,7 @@ public class PlayerClass extends PostLoadObject {
|
||||
: ManaDisplayOptions.DEFAULT;
|
||||
maxLevel = config.getInt("max-level");
|
||||
displayOrder = config.getInt("display.order");
|
||||
actionBarFormat = config.getString("action-bar", "");
|
||||
actionBarFormat = config.contains("action-bar", true) ? config.getString("action-bar") : null;
|
||||
|
||||
expCurve = config.contains("exp-curve")
|
||||
? MMOCore.plugin.experience.getOrThrow(
|
||||
@ -329,6 +329,6 @@ public class PlayerClass extends PostLoadObject {
|
||||
}
|
||||
|
||||
public boolean hasActionBar() {
|
||||
return actionBarFormat.isEmpty();
|
||||
return actionBarFormat == null;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user