Skip to content

Commit

Permalink
chore: add todo regarding fix for serializing
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed Dec 19, 2023
1 parent 0f7a3b7 commit 74a7952
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ class EmojyNMSHandler : IEmojyNMSHandler {
}
}

//TODO Figure out why renaming items doesnt work
// Example, readUtf for §9Backpack will return <blue>Backpack cuz legacy bad
// readNbt seems to then be called but the Tag/CompoundTag in form of StringTag is {"text":"<blue>Backpackd"}
// Aka the json is not parsing the serialized component correctly even when transformer here uses GsonComponentSerializer
private fun transform(compound: CompoundTag, transformer: Function<String, String>) {
for (key in compound.allKeys) when (val base = compound.get(key)) {
is CompoundTag -> transform(base, transformer)
Expand Down

0 comments on commit 74a7952

Please sign in to comment.