From 341d518e8a728204cb59f0cf5bd9017e59ad3fec Mon Sep 17 00:00:00 2001 From: aromaa Date: Tue, 7 Jan 2025 00:45:32 +0200 Subject: [PATCH] Fix when multiple tab list entries were filtered Forgot the null check so we would leak the n-1 entries --- .../common/entity/player/tab/SpongeTabList.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/spongepowered/common/entity/player/tab/SpongeTabList.java b/src/main/java/org/spongepowered/common/entity/player/tab/SpongeTabList.java index 3d92b8b235f..df318363459 100644 --- a/src/main/java/org/spongepowered/common/entity/player/tab/SpongeTabList.java +++ b/src/main/java/org/spongepowered/common/entity/player/tab/SpongeTabList.java @@ -243,7 +243,7 @@ void sendUpdate(final TabListEntry entry, final EnumSet(packet.profileIds().subList(0, i)); - } else if (filteredProfileIds != null) { - filteredProfileIds.add(uniqueId); } } if (filteredProfileIds == null) {