mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Remove generic usage in Api
This commit is contained in:
parent
83ddbd7d1a
commit
5b415cea68
5 changed files with 48 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue