Attempt to reduce memory usage and fix not being disconnected from Java

This commit is contained in:
RednedEpic 2019-10-16 13:55:05 -05:00 committed by RednedEpic
parent 20dda985bc
commit 7571df9903
7 changed files with 29 additions and 9 deletions

View file

@ -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

View file

@ -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();
}
}