Skip to content

Commit e3e4e7e

Browse files
committed
some fix
1 parent 937faf5 commit e3e4e7e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/maxgamer/quickshop/shop/JavaShopModerator.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,13 @@ public JavaShopModerator(@NotNull UUID owner, @NotNull List<UUID> staffs) {
7070
public static ShopModerator deserialize(@NotNull String serilized) throws JsonSyntaxException {
7171
// Use Gson deserialize data
7272
Gson gson = JsonUtil.regular();
73-
return gson.fromJson(serilized, ShopModerator.class);
73+
return gson.fromJson(serilized, JavaShopModerator.class);
7474
}
7575

7676
public static String serialize(@NotNull ShopModerator shopModerator) {
7777
Gson gson = JsonUtil.getGson();
78-
return gson.toJson(shopModerator); // Use Gson serialize this class
78+
JavaShopModerator gsonWorkaround = (JavaShopModerator) shopModerator;
79+
return gson.toJson(gsonWorkaround); // Use Gson serialize this class
7980
}
8081

8182
/**

0 commit comments

Comments
 (0)