From c709b019e195f9612c5d213c6e79b484ec651b0a Mon Sep 17 00:00:00 2001 From: creeper123123321 Date: Mon, 6 Aug 2018 15:30:36 -0300 Subject: [PATCH] Use ChatRewriter.legacyTextToJson in metadata rewriting --- .../protocols/protocol1_13to1_12_2/MetadataRewriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13to1_12_2/MetadataRewriter.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13to1_12_2/MetadataRewriter.java index 0a59e1dc6..38e9e7dcc 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13to1_12_2/MetadataRewriter.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_13to1_12_2/MetadataRewriter.java @@ -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); }