Add back missing semicolon

This commit is contained in:
rtm516 2023-08-26 23:04:28 +01:00
parent 3bfe81b4fe
commit 90870e9238
No known key found for this signature in database
GPG key ID: 331715B8B007C67A

View file

@ -48,6 +48,7 @@ import org.geysermc.geyser.api.util.PlatformType;
import org.geysermc.geyser.session.GeyserSession; import org.geysermc.geyser.session.GeyserSession;
import java.util.Arrays; import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors; import java.util.stream.Collectors;
public class GeyserConnect implements Extension { public class GeyserConnect implements Extension {
@ -159,7 +160,7 @@ public class GeyserConnect implements Extension {
return; return;
} }
GeyserSession[] sessions = getGeyserSessions(); List<GeyserSession> sessions = getGeyserSessions();
switch (type) { switch (type) {
case "chat": case "chat":
@ -231,7 +232,7 @@ public class GeyserConnect implements Extension {
.build()); .build());
} }
private GeyserSession[] getGeyserSessions() { private List<GeyserSession> getGeyserSessions() {
return this.geyserApi().onlineConnections().stream().map(connection -> (GeyserSession) connection).toList() return this.geyserApi().onlineConnections().stream().map(connection -> (GeyserSession) connection).toList();
} }
} }