mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-26 03:55:28 +01:00
Use ChatRewriter.legacyTextToJson in metadata rewriting
This commit is contained in:
parent
faabe5afb2
commit
c709b019e1
@ -28,7 +28,7 @@ public class MetadataRewriter {
|
||||
if (metadata.getId() == 2) {
|
||||
metadata.setMetaType(MetaType1_13.OptChat);
|
||||
if (metadata.getValue() != null && !((String) metadata.getValue()).isEmpty()) {
|
||||
metadata.setValue(Protocol1_9TO1_8.fixJson((String) metadata.getValue()));
|
||||
metadata.setValue(ChatRewriter.legacyTextToJson((String) metadata.getValue()));
|
||||
} else {
|
||||
metadata.setValue(null);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user