From 37bb71938185ec0bf5abcdd00c53e7de3864318e Mon Sep 17 00:00:00 2001 From: Ka0rX Date: Sun, 19 Mar 2023 20:46:42 +0100 Subject: [PATCH] Buf Fix --- .../mmocore/manager/data/mysql/MMOCoreDataSynchronizer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MMOCore-API/src/main/java/net/Indyuce/mmocore/manager/data/mysql/MMOCoreDataSynchronizer.java b/MMOCore-API/src/main/java/net/Indyuce/mmocore/manager/data/mysql/MMOCoreDataSynchronizer.java index 6901bfa8..48ee1850 100644 --- a/MMOCore-API/src/main/java/net/Indyuce/mmocore/manager/data/mysql/MMOCoreDataSynchronizer.java +++ b/MMOCore-API/src/main/java/net/Indyuce/mmocore/manager/data/mysql/MMOCoreDataSynchronizer.java @@ -97,7 +97,7 @@ public class MMOCoreDataSynchronizer extends DataSynchronizer { data.setSkillLevel(entry.getKey(), entry.getValue().getAsInt()); } if (!isEmpty(result.getString("bound_skills"))) { - JsonObject object = new Gson().fromJson(result.getString("skills"), JsonObject.class); + JsonObject object = new Gson().fromJson(result.getString("bound_skills"), JsonObject.class); for (Map.Entry entry : object.entrySet()) data.bindSkill(Integer.parseInt(entry.getKey()), data.getProfess().getSkill(entry.getValue().getAsString())); }