From bbd3708393a11a7671d861708e4a510bbce2942c Mon Sep 17 00:00:00 2001 From: Jules Date: Fri, 3 Mar 2023 16:12:37 +0100 Subject: [PATCH] Removed default exp holos for the exp trigger. --- .../net/Indyuce/mmocore/experience/SimpleExperienceObject.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/experience/SimpleExperienceObject.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/experience/SimpleExperienceObject.java index 87e013c7..921d1438 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/experience/SimpleExperienceObject.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/experience/SimpleExperienceObject.java @@ -10,8 +10,7 @@ public class SimpleExperienceObject implements ExperienceDispenser { @Override public void giveExperience(PlayerData playerData, double experience, @Nullable Location hologramLocation, EXPSource source) { - hologramLocation = !MMOCore.plugin.getConfig().getBoolean("display-main-class-exp-holograms") ? null - : hologramLocation == null ? getPlayerLocation(playerData) : hologramLocation; + hologramLocation = !MMOCore.plugin.getConfig().getBoolean("display-main-class-exp-holograms") ? null : hologramLocation; playerData.giveExperience(experience, source, hologramLocation, true); }