Fixed running MMOCore without MMOItems

(NoClassDefFoundError: net.Indyuce.mmoitems.MMOItems)
This commit is contained in:
Aria Sangarin 2020-02-26 12:54:36 +01:00
parent 7fc5b56d59
commit 6d7001fac2
2 changed files with 2 additions and 5 deletions

View File

@ -50,7 +50,6 @@ import net.Indyuce.mmocore.api.skill.SkillResult;
import net.Indyuce.mmocore.api.skill.SkillResult.CancelReason; import net.Indyuce.mmocore.api.skill.SkillResult.CancelReason;
import net.Indyuce.mmocore.api.util.math.particle.SmallParticleEffect; import net.Indyuce.mmocore.api.util.math.particle.SmallParticleEffect;
import net.Indyuce.mmocore.listener.SpellCast.SkillCasting; import net.Indyuce.mmocore.listener.SpellCast.SkillCasting;
import net.Indyuce.mmoitems.MMOItems;
import net.md_5.bungee.api.ChatMessageType; import net.md_5.bungee.api.ChatMessageType;
import net.md_5.bungee.api.chat.TextComponent; import net.md_5.bungee.api.chat.TextComponent;
import net.mmogroup.mmolib.MMOLib; import net.mmogroup.mmolib.MMOLib;
@ -496,7 +495,7 @@ public class PlayerData extends OfflinePlayerData {
} }
// display hologram // 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) 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(), getPlayer()); MMOCore.plugin.hologramSupport.displayIndicator(loc.add(.5, 1.5, .5), MMOCore.plugin.configManager.getSimpleMessage("exp-hologram", "exp", "" + value).message(), getPlayer());
} }

View File

@ -76,9 +76,7 @@ health-scale:
disable-vanilla-regen: false disable-vanilla-regen: false
# Allows to toggle exp hologram from gaining experiences # Allows to toggle exp hologram from gaining experiences
game-indicators: display-exp-holograms: true
exp:
enabled: false
# Players can swap their hotbar with the 9 inventory slots # Players can swap their hotbar with the 9 inventory slots
# right above it by pressing [swap items] while crouching. # right above it by pressing [swap items] while crouching.