Remove generic usage in Api

This commit is contained in:
RednedEpic 2021-11-21 20:18:00 -06:00
parent 83ddbd7d1a
commit 5b415cea68
5 changed files with 48 additions and 15 deletions

View file

@ -414,9 +414,8 @@ public class GeyserImpl implements GeyserApi {
}
@Override
@SuppressWarnings("unchecked")
public @NonNull List<GeyserSession> onlineSessions() {
return (List<GeyserSession>) (List<? extends GeyserSession>) this.sessionManager.getAllSessions();
public @NonNull List<GeyserSessionImpl> onlineSessions() {
return this.sessionManager.getAllSessions();
}
@Override