diff --git a/Spigot-API-Patches/Implement-deprecated-player-sample-API.patch b/Spigot-API-Patches/Implement-deprecated-player-sample-API.patch index fd2ce11d0a..dc0d259bc0 100644 --- a/Spigot-API-Patches/Implement-deprecated-player-sample-API.patch +++ b/Spigot-API-Patches/Implement-deprecated-player-sample-API.patch @@ -5,7 +5,7 @@ Subject: [PATCH] Implement deprecated player sample API diff --git a/src/main/java/com/destroystokyo/paper/event/server/PaperServerListPingEvent.java b/src/main/java/com/destroystokyo/paper/event/server/PaperServerListPingEvent.java -index dd1deafd..32cf9f01 100644 +index dd1deafd..db992df2 100644 --- a/src/main/java/com/destroystokyo/paper/event/server/PaperServerListPingEvent.java +++ b/src/main/java/com/destroystokyo/paper/event/server/PaperServerListPingEvent.java @@ -0,0 +0,0 @@ import static java.util.Objects.requireNonNull; @@ -13,7 +13,6 @@ index dd1deafd..32cf9f01 100644 import com.destroystokyo.paper.network.StatusClient; import com.destroystokyo.paper.profile.PlayerProfile; +import com.google.common.base.Strings; -+import com.google.common.collect.ImmutableList; import org.bukkit.Bukkit; import org.bukkit.entity.Player; import org.bukkit.event.Cancellable; @@ -26,11 +25,11 @@ index dd1deafd..32cf9f01 100644 + @Override + @Deprecated + public List getSampleText() { -+ ImmutableList.Builder sampleText = ImmutableList.builder(); ++ List sampleText = new ArrayList<>(); + for (PlayerProfile profile : getPlayerSample()) { + sampleText.add(Strings.nullToEmpty(profile.getName())); + } -+ return sampleText.build(); ++ return sampleText; + } + + @Override