Use ChatRewriter.legacyTextToJson in metadata rewriting

This commit is contained in:
creeper123123321 2018-08-06 15:30:36 -03:00
parent faabe5afb2
commit c709b019e1
No known key found for this signature in database
GPG Key ID: 0AC57D54786721D1

View File

@ -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);
}