From 2e594bd059d2fa5207126c05ddcc95a2ce7892fd Mon Sep 17 00:00:00 2001 From: Riley Park Date: Tue, 23 Feb 2021 13:40:49 -0800 Subject: [PATCH] Don't try to deserialize a null string in legacy method --- Spigot-Server-Patches/Adventure.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spigot-Server-Patches/Adventure.patch b/Spigot-Server-Patches/Adventure.patch index 7fe9df1da9..c564347641 100644 --- a/Spigot-Server-Patches/Adventure.patch +++ b/Spigot-Server-Patches/Adventure.patch @@ -1688,7 +1688,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 public void setLine(int index, String line) throws IndexOutOfBoundsException { - getLines()[index] = line; + this.loadLines(); -+ this.lines.set(index, io.papermc.paper.adventure.PaperAdventure.LEGACY_SECTION_UXRC.deserialize(line)); // Paper ++ this.lines.set(index, line != null ? io.papermc.paper.adventure.PaperAdventure.LEGACY_SECTION_UXRC.deserialize(line) : net.kyori.adventure.text.Component.empty()); // Paper } @Override