From 03a3716f6d47a32d4dcc4a6bcf6d3be94d53bbe3 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Sun, 6 Oct 2024 05:05:18 +0200 Subject: [PATCH] fix getting altcontrol peers --- .../com/baseband/client/feature/modules/client/AltControl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Client/src/main/java/de/com/baseband/client/feature/modules/client/AltControl.java b/Client/src/main/java/de/com/baseband/client/feature/modules/client/AltControl.java index 271467b..38e354d 100644 --- a/Client/src/main/java/de/com/baseband/client/feature/modules/client/AltControl.java +++ b/Client/src/main/java/de/com/baseband/client/feature/modules/client/AltControl.java @@ -19,6 +19,7 @@ import de.com.baseband.client.util.adapt.Marker; import de.com.baseband.client.util.interact.Chat; import java.util.ArrayList; +import java.util.Iterator; @ClientCategory public class AltControl extends Feature { @@ -86,7 +87,7 @@ public class AltControl extends Feature { public void onDataResponse(RemoteDataRequestEvent.Response event) { peers.add(event.profile); if(peers.size() == BaseBand.REMOTE_EVENT_BUS.getPeers()) { - BaseBand.notifyAll("§a§lPeers: §r" + String.join(", ", (Iterable) peers.stream().map(GameProfile::getName))); + BaseBand.notifyAll("§a§lPeers: §r" + String.join(", ", (Iterable) () -> peers.stream().map(GameProfile::getName).iterator())); } }