From 0b869c4be5207ca5db0ec52c349d7b47fae5cf53 Mon Sep 17 00:00:00 2001 From: ASangarin Date: Sat, 12 Sep 2020 20:41:38 +0200 Subject: [PATCH] Fixed actionbars not displaying if class actionsbars were empty --- .../net/Indyuce/mmocore/api/player/profess/PlayerClass.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/Indyuce/mmocore/api/player/profess/PlayerClass.java b/src/main/java/net/Indyuce/mmocore/api/player/profess/PlayerClass.java index c8826d73..8984ab52 100644 --- a/src/main/java/net/Indyuce/mmocore/api/player/profess/PlayerClass.java +++ b/src/main/java/net/Indyuce/mmocore/api/player/profess/PlayerClass.java @@ -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; } }