From 347f3a9b87f70a1a3032767861242c9afa778629 Mon Sep 17 00:00:00 2001 From: Mariell Hoversholm Date: Wed, 17 Mar 2021 10:47:08 +0100 Subject: [PATCH] fix compile --- Spigot-Server-Patches/0010-Adventure.patch | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Spigot-Server-Patches/0010-Adventure.patch b/Spigot-Server-Patches/0010-Adventure.patch index ea38b4d99..f8a378d6c 100644 --- a/Spigot-Server-Patches/0010-Adventure.patch +++ b/Spigot-Server-Patches/0010-Adventure.patch @@ -106,10 +106,10 @@ index 0000000000000000000000000000000000000000..dd018bb835e1b9fb2496404e1e5b1038 +} diff --git a/src/main/java/io/papermc/paper/adventure/ChatProcessor.java b/src/main/java/io/papermc/paper/adventure/ChatProcessor.java new file mode 100644 -index 0000000000000000000000000000000000000000..ee377d5bd8646733968f4085f60150f8ff6a4a5c +index 0000000000000000000000000000000000000000..e1c5376efccbb1432b17cc60797a7bbe2871a470 --- /dev/null +++ b/src/main/java/io/papermc/paper/adventure/ChatProcessor.java -@@ -0,0 +1,211 @@ +@@ -0,0 +1,213 @@ +package io.papermc.paper.adventure; + +import io.papermc.paper.chat.ChatFormatter; @@ -270,11 +270,11 @@ index 0000000000000000000000000000000000000000..ee377d5bd8646733968f4085f60150f8 + + if (((LazyPlayerSet) event.recipients()).isLazy()) { + final IChatBaseComponent vanilla = PaperAdventure.asVanilla(message); -+ for(final EntityPlayer recipient : this.server.getPlayerList().players) { ++ for (final EntityPlayer recipient : this.server.getPlayerList().players) { + recipient.sendMessage(vanilla, this.player.getUniqueID()); + } + } else { -+ for(final Player recipient : event.recipients()) { ++ for (final Player recipient : event.recipients()) { + recipient.sendMessage(player, message); + } + } @@ -321,6 +321,8 @@ index 0000000000000000000000000000000000000000..ee377d5bd8646733968f4085f60150f8 + + private static boolean anyListeners(final HandlerList handlers) { + return handlers.getRegisteredListeners().length > 0; ++ } ++} diff --git a/src/main/java/io/papermc/paper/adventure/DisplayNames.java b/src/main/java/io/papermc/paper/adventure/DisplayNames.java new file mode 100644 index 0000000000000000000000000000000000000000..b1d9d6276eb577ed3c66df1f89b3266d2c48eaf2