From c618b0267e829e05b0e9ec30d36ddb16181ed54c Mon Sep 17 00:00:00 2001 From: Ka0rX Date: Sun, 19 Mar 2023 14:03:48 +0100 Subject: [PATCH] Reformat for mapBoundSkills method. --- .../java/net/Indyuce/mmocore/api/player/PlayerData.java | 6 +++--- .../java/net/Indyuce/mmocore/player/ClassDataContainer.java | 2 +- .../java/net/Indyuce/mmocore/player/DefaultPlayerData.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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 f4ffd6df..df27d52e 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 @@ -221,10 +221,10 @@ public class PlayerData extends OfflinePlayerData implements Closable, Experienc } @Override - public Map mapBoundSkills() { - Map result= new HashMap<>(); + public Map mapBoundSkills() { + Map result= new HashMap<>(); for(int slot:boundSkills.keySet()) - result.put(slot,boundSkills.get(slot).getClassSkill()); + result.put(slot,boundSkills.get(slot).getClassSkill().getSkill().getHandler().getId()); return result; } diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/player/ClassDataContainer.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/player/ClassDataContainer.java index eb9625b6..f1198b19 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/player/ClassDataContainer.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/player/ClassDataContainer.java @@ -43,7 +43,7 @@ public interface ClassDataContainer { Map mapSkillTreePoints(); - Map mapBoundSkills(); + Map mapBoundSkills(); Map getNodeLevels(); diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/player/DefaultPlayerData.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/player/DefaultPlayerData.java index d7cfb92a..48c54d08 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/player/DefaultPlayerData.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/player/DefaultPlayerData.java @@ -128,7 +128,7 @@ public class DefaultPlayerData implements ClassDataContainer { } @Override - public Map mapBoundSkills() { + public Map mapBoundSkills() { return new HashMap<>(); }