mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-26 19:18:12 +01:00
Change remove to poll
This commit is contained in:
parent
78abfb9657
commit
fa7fe1398f
@ -495,7 +495,7 @@ public final class ConnectionManager {
|
|||||||
*/
|
*/
|
||||||
private void waitingPlayersTick() {
|
private void waitingPlayersTick() {
|
||||||
Player waitingPlayer;
|
Player waitingPlayer;
|
||||||
while ((waitingPlayer = waitingPlayers.remove()) != null) {
|
while ((waitingPlayer = waitingPlayers.poll()) != null) {
|
||||||
|
|
||||||
PlayerLoginEvent loginEvent = new PlayerLoginEvent(waitingPlayer);
|
PlayerLoginEvent loginEvent = new PlayerLoginEvent(waitingPlayer);
|
||||||
waitingPlayer.callEvent(PlayerLoginEvent.class, loginEvent);
|
waitingPlayer.callEvent(PlayerLoginEvent.class, loginEvent);
|
||||||
|
Loading…
Reference in New Issue
Block a user