From 021cd960da8948cf30c57dbcdb74050975b9986b Mon Sep 17 00:00:00 2001 From: Ka0rX Date: Sun, 16 Apr 2023 20:09:49 +0100 Subject: [PATCH] Bug Fix --- .../main/java/net/Indyuce/mmocore/api/player/PlayerData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java index 426100d4..b65e774e 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/api/player/PlayerData.java @@ -179,7 +179,7 @@ public class PlayerData extends OfflinePlayerData implements Closable, Experienc final String skillId = entry.getValue().getClassSkill().getSkill().getHandler().getId(); final @Nullable ClassSkill classSkill = getProfess().getSkill(skillId); Validate.notNull(skillSlot, "Could not find skill slot n" + entry.getKey()); - Validate.notNull(skillSlot, "Could not find skill with ID '" + skillId + "'"); + Validate.notNull(classSkill, "Could not find skill with ID '" + skillId + "'"); entry.getValue().close(); boundSkills.put(entry.getKey(), new BoundSkillInfo(skillSlot, classSkill, this));