mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-12-28 11:19:11 +00:00
Attempt to reduce memory usage and fix not being disconnected from Java
This commit is contained in:
@@ -67,7 +67,7 @@ public interface Connector {
|
||||
*
|
||||
* @return a collection of the connected players
|
||||
*/
|
||||
Collection<Player> getConnectedPlayers();
|
||||
Collection<? extends Player> getConnectedPlayers();
|
||||
|
||||
/**
|
||||
* Shuts down the connector
|
||||
|
||||
@@ -97,7 +97,7 @@ public class Geyser {
|
||||
*
|
||||
* @return a collection of the connected players
|
||||
*/
|
||||
public static Collection<Player> getConnectedPlayers() {
|
||||
public static Collection<? extends Player> getConnectedPlayers() {
|
||||
return connector.getConnectedPlayers();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user