Skip to content

Commit

Permalink
update to 1.20.4
Browse files Browse the repository at this point in the history
medisant committed Jan 10, 2024
1 parent 1d9a4c2 commit 7f547c3
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -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
}


8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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;
}
}

0 comments on commit 7f547c3

Please sign in to comment.