Skip to content

Commit

Permalink
Add back missing semicolon
Browse files Browse the repository at this point in the history
  • Loading branch information
rtm516 committed Aug 26, 2023
1 parent 3bfe81b commit 90870e9
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import org.geysermc.geyser.session.GeyserSession;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class GeyserConnect implements Extension {
Expand Down Expand Up @@ -159,7 +160,7 @@ public void onCommandDefine(GeyserDefineCommandsEvent event) {
return;
}

GeyserSession[] sessions = getGeyserSessions();
List<GeyserSession> sessions = getGeyserSessions();

switch (type) {
case "chat":
Expand Down Expand Up @@ -231,7 +232,7 @@ public void onCommandDefine(GeyserDefineCommandsEvent event) {
.build());
}

private GeyserSession[] getGeyserSessions() {
return this.geyserApi().onlineConnections().stream().map(connection -> (GeyserSession) connection).toList()
private List<GeyserSession> getGeyserSessions() {
return this.geyserApi().onlineConnections().stream().map(connection -> (GeyserSession) connection).toList();
}
}

0 comments on commit 90870e9

Please sign in to comment.