Change remove to poll

This commit is contained in:
LeoDog896 2021-01-18 10:45:22 -05:00
parent 78abfb9657
commit fa7fe1398f
1 changed files with 1 additions and 1 deletions

View File

@ -495,7 +495,7 @@ public final class ConnectionManager {
*/
private void waitingPlayersTick() {
Player waitingPlayer;
while ((waitingPlayer = waitingPlayers.remove()) != null) {
while ((waitingPlayer = waitingPlayers.poll()) != null) {
PlayerLoginEvent loginEvent = new PlayerLoginEvent(waitingPlayer);
waitingPlayer.callEvent(PlayerLoginEvent.class, loginEvent);