mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Attempt to reduce memory usage and fix not being disconnected from Java
This commit is contained in:
parent
20dda985bc
commit
7571df9903
7 changed files with 29 additions and 9 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue