diff --git a/build.gradle b/build.gradle index bdbb00d..a27e24a 100644 --- a/build.gradle +++ b/build.gradle @@ -36,7 +36,7 @@ dependencies { modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}" modImplementation "fi.dy.masa.malilib:malilib-fabric-1.20.2:${project.malilib_version}" //modImplementation "com.github.DarkKronicle:AdvancedChatCore:${project.advancedchat_version}" - modImplementation "io.github.darkkronicle:AdvancedChatCore:1.20.2-1.5.10" // only used to build the mod locally + modImplementation "io.github.darkkronicle:AdvancedChatCore:1.20.4-1.5.10" // only used to build the mod locally } diff --git a/gradle.properties b/gradle.properties index e2bf048..e9011a7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,7 @@ -minecraft_version=1.20.2 -yarn_mappings=1.20.2+build.4 -loader_version=0.14.24 -fabric_api_version=0.90.4+1.20.2 +minecraft_version=1.20.4 +yarn_mappings=1.20.4+build.3 +loader_version=0.15.3 +fabric_api_version=0.92.0+1.20.4 # Mod Properties mod_version=1.2.3 diff --git a/src/main/java/io/github/darkkronicle/advancedchatlog/util/LogChatMessageSerializer.java b/src/main/java/io/github/darkkronicle/advancedchatlog/util/LogChatMessageSerializer.java index ac09969..89195b7 100644 --- a/src/main/java/io/github/darkkronicle/advancedchatlog/util/LogChatMessageSerializer.java +++ b/src/main/java/io/github/darkkronicle/advancedchatlog/util/LogChatMessageSerializer.java @@ -52,8 +52,9 @@ public LogChatMessage load(JsonObject obj) { LocalDateTime dateTime = LocalDateTime.from(formatter.parse(obj.get("time").getAsString())); LocalDate date = dateTime.toLocalDate(); LocalTime time = dateTime.toLocalTime(); - Text display = Text.Serializer.fromJson(obj.get("display")); - Text original = Text.Serializer.fromJson(obj.get("original")); + + Text display = Text.Serialization.fromJson(obj.get("display").getAsString()); + Text original = Text.Serialization.fromJson(obj.get("original").getAsString()); int stacks = obj.get("stacks").getAsByte(); ChatMessage message = ChatMessage.builder() @@ -72,8 +73,8 @@ public JsonObject save(LogChatMessage message) { LocalDateTime dateTime = LocalDateTime.of(message.getDate(), chat.getTime()); json.addProperty("time", formatter.format(dateTime)); json.addProperty("stacks", chat.getStacks()); - json.add("display", Text.Serializer.toJsonTree(transfer(chat.getDisplayText()))); - json.add("original", Text.Serializer.toJsonTree(transfer(chat.getOriginalText()))); + json.add("display", Text.Serialization.toJsonTree(transfer(chat.getDisplayText()))); + json.add("original", Text.Serialization.toJsonTree(transfer(chat.getOriginalText()))); return json; } }