This commit is contained in:
parent
389da94385
commit
03a3716f6d
1 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@ import de.com.baseband.client.util.adapt.Marker;
|
||||||
import de.com.baseband.client.util.interact.Chat;
|
import de.com.baseband.client.util.interact.Chat;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Iterator;
|
||||||
|
|
||||||
@ClientCategory
|
@ClientCategory
|
||||||
public class AltControl extends Feature {
|
public class AltControl extends Feature {
|
||||||
|
@ -86,7 +87,7 @@ public class AltControl extends Feature {
|
||||||
public void onDataResponse(RemoteDataRequestEvent.Response event) {
|
public void onDataResponse(RemoteDataRequestEvent.Response event) {
|
||||||
peers.add(event.profile);
|
peers.add(event.profile);
|
||||||
if(peers.size() == BaseBand.REMOTE_EVENT_BUS.getPeers()) {
|
if(peers.size() == BaseBand.REMOTE_EVENT_BUS.getPeers()) {
|
||||||
BaseBand.notifyAll("§a§lPeers: §r" + String.join(", ", (Iterable<? extends CharSequence>) peers.stream().map(GameProfile::getName)));
|
BaseBand.notifyAll("§a§lPeers: §r" + String.join(", ", (Iterable<String>) () -> peers.stream().map(GameProfile::getName).iterator()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue