refactor: rewrite ComponentUtilities component parser (still a bit broken but at least a bit better on the codestyle side)

This commit is contained in:
ChomeNS
2024-12-28 17:55:04 +07:00
parent 9b675bfed4
commit 052e57a799
6 changed files with 265 additions and 253 deletions

View File

@@ -209,7 +209,7 @@ public class Bot {
// we also set other stuffs here
session.send(
new ServerboundClientInformationPacket(
ComponentUtilities.language.getOrDefault("language.code", "en-us"),
ComponentUtilities.LANGUAGE.getOrDefault("language.code", "en-us"),
16,
ChatVisibility.FULL,
true,