          {
 -            displayName = readString( buf );
 +            // Waterfall start - 1.13
-+            if (protocolVersion <= ProtocolConstants.MINECRAFT_1_13) {
++            if (protocolVersion >= ProtocolConstants.MINECRAFT_1_13) {
 +                String displayNameJson = readString(buf);
 +                displayName = TextComponent.toLegacyText(ComponentSerializer.parse(displayNameJson));
 +            } else {

         {
-            writeString( displayName, buf );
+            // Waterfall start - 1.13
+            if (protocolVersion <= ProtocolConstants.MINECRAFT_1_13) {
+                String displayNameJson = ComponentSerializer.toString(TextComponent.fromLegacyText(displayName));
+                writeString( displayNameJson, buf );
+            } else {

From d92c7b5c3f6050b061fe55dcc82eb7e048bea38e Mon Sep 17 00:00:00 2001
From: Shane Freeder <theboyetronic@gmail.com>
Date: Sat, 21 Jul 2018 17:14:39 +0100
Subject: [PATCH] 1.13 protocol support
