From b881670015126417f3034eed51a3365cc295850d Mon Sep 17 00:00:00 2001
From: Josh Roy <10731363+JRoy@users.noreply.github.com>
Date: Sun, 6 Jun 2021 15:04:43 -0400
Subject: [PATCH] Fix timings sometimes incorrectly marking commands (#5783)

---
 Spigot-Server-Patches/Timings-v2.patch | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/Spigot-Server-Patches/Timings-v2.patch b/Spigot-Server-Patches/Timings-v2.patch
index 8f3f81270f..04ffe21918 100644
--- a/Spigot-Server-Patches/Timings-v2.patch
+++ b/Spigot-Server-Patches/Timings-v2.patch
@@ -774,6 +774,19 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
                  } else {
                      PlayerConnectionUtils.LOGGER.debug("Ignoring packet due to disconnection: " + packet);
                  }
+diff --git a/src/main/java/net/minecraft/network/protocol/game/PacketPlayInChat.java b/src/main/java/net/minecraft/network/protocol/game/PacketPlayInChat.java
+index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
+--- a/src/main/java/net/minecraft/network/protocol/game/PacketPlayInChat.java
++++ b/src/main/java/net/minecraft/network/protocol/game/PacketPlayInChat.java
+@@ -0,0 +0,0 @@ public class PacketPlayInChat implements Packet<PacketListenerPlayIn> {
+ 
+     @Override
+     public void a(PacketDataSerializer packetdataserializer) throws IOException {
+-        this.a = packetdataserializer.e(256);
++        this.a = org.apache.commons.lang3.StringUtils.normalizeSpace(packetdataserializer.e(256));
+     }
+ 
+     @Override
 diff --git a/src/main/java/net/minecraft/server/CustomFunctionData.java b/src/main/java/net/minecraft/server/CustomFunctionData.java
 index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
 --- a/src/main/java/net/minecraft/server/CustomFunctionData.java