From 647865bdd3169e1352b2b882a841f25935815c26 Mon Sep 17 00:00:00 2001 From: Ka0rX Date: Sat, 3 Sep 2022 16:54:18 +0200 Subject: [PATCH] Fixed skill tree bug --- .../src/main/java/net/Indyuce/mmocore/tree/SkillTreeNode.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/tree/SkillTreeNode.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/tree/SkillTreeNode.java index 98e1db85..b8c730e1 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/tree/SkillTreeNode.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/tree/SkillTreeNode.java @@ -210,6 +210,8 @@ public class SkillTreeNode implements Unlockable, ExperienceObject { public List getLore(PlayerData playerData) { Placeholders holders = getPlaceholders(playerData); List parsedLore = new ArrayList<>(); + if(!lores.containsKey(playerData.getNodeLevel(this))) + return parsedLore; List lore= lores.get(playerData.getNodeLevel(this)); lore.forEach(string -> parsedLore.add( MythicLib.plugin.parseColors(holders.apply(playerData.getPlayer(), string))));