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())); } }