Gaming32 / bingo

A multiloader bingo mod
https://modrinth.com/mod/bingo-mod
MIT License
4 stars 2 forks source link

Prevent crash caused by kicking players while iterating player list #17

Closed RasmusAntons closed 4 months ago

RasmusAntons commented 4 months ago

I think #16 is caused by players being kicked while iterating the player list, so a possible fix is to collect the list of players that need to be kicked first.

This makes me wonder what would happen if a player happens to leave at a bad moment, but at least this change effectively solves #16 for me.

Gaming32 commented 4 months ago

The issue has been fixed.