File tree Expand file tree Collapse file tree
src/main/java/io/github/darkkronicle/advancedchatlog/util Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ dependencies {
3636 modImplementation " net.fabricmc.fabric-api:fabric-api:${ project.fabric_api_version} "
3737 modImplementation " fi.dy.masa.malilib:malilib-fabric-1.20.2:${ project.malilib_version} "
3838 // modImplementation "com.github.DarkKronicle:AdvancedChatCore:${project.advancedchat_version}"
39- modImplementation " io.github.darkkronicle:AdvancedChatCore:1.20.2 -1.5.10" // only used to build the mod locally
39+ modImplementation " io.github.darkkronicle:AdvancedChatCore:1.20.4 -1.5.10" // only used to build the mod locally
4040}
4141
4242
Original file line number Diff line number Diff line change 1- minecraft_version =1.20.2
2- yarn_mappings =1.20.2 +build.4
3- loader_version =0.14.24
4- fabric_api_version =0.90.4 +1.20.2
1+ minecraft_version =1.20.4
2+ yarn_mappings =1.20.4 +build.3
3+ loader_version =0.15.3
4+ fabric_api_version =0.92.0 +1.20.4
55
66# Mod Properties
77mod_version =1.2.3
Original file line number Diff line number Diff line change @@ -52,8 +52,9 @@ public LogChatMessage load(JsonObject obj) {
5252 LocalDateTime dateTime = LocalDateTime .from (formatter .parse (obj .get ("time" ).getAsString ()));
5353 LocalDate date = dateTime .toLocalDate ();
5454 LocalTime time = dateTime .toLocalTime ();
55- Text display = Text .Serializer .fromJson (obj .get ("display" ));
56- Text original = Text .Serializer .fromJson (obj .get ("original" ));
55+
56+ Text display = Text .Serialization .fromJson (obj .get ("display" ).getAsString ());
57+ Text original = Text .Serialization .fromJson (obj .get ("original" ).getAsString ());
5758 int stacks = obj .get ("stacks" ).getAsByte ();
5859 ChatMessage message =
5960 ChatMessage .builder ()
@@ -72,8 +73,8 @@ public JsonObject save(LogChatMessage message) {
7273 LocalDateTime dateTime = LocalDateTime .of (message .getDate (), chat .getTime ());
7374 json .addProperty ("time" , formatter .format (dateTime ));
7475 json .addProperty ("stacks" , chat .getStacks ());
75- json .add ("display" , Text .Serializer .toJsonTree (transfer (chat .getDisplayText ())));
76- json .add ("original" , Text .Serializer .toJsonTree (transfer (chat .getOriginalText ())));
76+ json .add ("display" , Text .Serialization .toJsonTree (transfer (chat .getDisplayText ())));
77+ json .add ("original" , Text .Serialization .toJsonTree (transfer (chat .getOriginalText ())));
7778 return json ;
7879 }
7980}
You can’t perform that action at this time.
0 commit comments