From cf5647a72ccff8716a38d9c5499faa0c22b69c4b Mon Sep 17 00:00:00 2001 From: Aria Sangarin Date: Wed, 26 Feb 2020 18:34:41 +0100 Subject: [PATCH] Fixed another bug when running without MMOItems --- src/main/java/net/Indyuce/mmocore/api/player/Professions.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/net/Indyuce/mmocore/api/player/Professions.java b/src/main/java/net/Indyuce/mmocore/api/player/Professions.java index 689b2030..edcb3ff0 100644 --- a/src/main/java/net/Indyuce/mmocore/api/player/Professions.java +++ b/src/main/java/net/Indyuce/mmocore/api/player/Professions.java @@ -3,7 +3,6 @@ package net.Indyuce.mmocore.api.player; import java.util.HashMap; import java.util.Map; -import net.Indyuce.mmoitems.MMOItems; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.Location; @@ -87,7 +86,7 @@ public class Professions { exp.put(profession.getId(), exp.containsKey(profession.getId()) ? exp.get(profession.getId()) + value : value); // display hologram - if (MMOItems.plugin.getConfig().getBoolean("game-indicators.exp.enabled")) { + if (MMOCore.plugin.getConfig().getBoolean("display-exp-holograms")) { if (loc != null && MMOCore.plugin.hologramSupport != null) MMOCore.plugin.hologramSupport.displayIndicator(loc.add(.5, 1.5, .5), MMOCore.plugin.configManager.getSimpleMessage("exp-hologram", "exp", "" + value).message(), playerData.getPlayer()); }