From 2d21a9f100b65e509761e1e1babb6a0717f96fe9 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/Adventure.patch | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Spigot-Server-Patches/Adventure.patch b/Spigot-Server-Patches/Adventure.patch index d389f38734..84d29a978e 100644 --- a/Spigot-Server-Patches/Adventure.patch +++ b/Spigot-Server-Patches/Adventure.patch @@ -270,11 +270,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + + 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..00000000000000000000000000000000 + + 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..0000000000000000000000000000000000000000