Books can have color codes

This commit is contained in:
RaphiMC 2024-09-24 21:12:45 +02:00
parent f9f02c4729
commit 1b8d46746c
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94

View File

@ -133,7 +133,7 @@ public class ItemRewriter extends LegacyItemRewriter<ClientboundPackets1_7_2, Se
for (int i = 0; i < pages.size(); i++) {
final String text = pages.get(i).getValue();
pages.set(i, new StringTag(TextComponentSerializer.V1_8.deserialize(text).asUnformattedString()));
pages.set(i, new StringTag(TextComponentSerializer.V1_8.deserialize(text).asLegacyFormatString()));
}
}