From edd71bf8ab61fe067605fea2c563fcfcb3a8be00 Mon Sep 17 00:00:00 2001 From: KennyTV Date: Fri, 16 Oct 2020 18:26:15 +0200 Subject: [PATCH] Fix version blocking on 1.8 Fixes #2142 --- .../protocols/protocol1_9to1_8/Protocol1_9To1_8.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/Protocol1_9To1_8.java b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/Protocol1_9To1_8.java index b506881dc..ce0516b6a 100644 --- a/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/Protocol1_9To1_8.java +++ b/common/src/main/java/us/myles/ViaVersion/protocols/protocol1_9to1_8/Protocol1_9To1_8.java @@ -101,7 +101,14 @@ public class Protocol1_9To1_8 extends Protocol { + if (wrapper.isReadable(Type.COMPONENT, 0)) { + // Already written as json somewhere else + return; + } + + wrapper.write(Type.COMPONENT, fixJson(wrapper.read(Type.STRING))); + }); } });