forked from Upstream/mmocore
Bug for class information saving in SQL.
This commit is contained in:
parent
aa90e9bc6c
commit
06985321d6
@ -125,7 +125,7 @@ public class MySQLPlayerDataManager extends PlayerDataManager {
|
|||||||
data.getBoundSkills().add(skill);
|
data.getBoundSkills().add(skill);
|
||||||
}
|
}
|
||||||
if (!isEmpty(result.getString("class_info"))) {
|
if (!isEmpty(result.getString("class_info"))) {
|
||||||
JsonObject object = MythicLib.plugin.getJson().parse(result.getString("class_info"), JsonObject.class);
|
JsonObject object = new Gson().fromJson(result.getString("class_info"), JsonObject.class);
|
||||||
for (Entry<String, JsonElement> entry : object.entrySet()) {
|
for (Entry<String, JsonElement> entry : object.entrySet()) {
|
||||||
try {
|
try {
|
||||||
PlayerClass profess = MMOCore.plugin.classManager.get(entry.getKey());
|
PlayerClass profess = MMOCore.plugin.classManager.get(entry.getKey());
|
||||||
|
Loading…
Reference in New Issue
Block a user