mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-04-19 18:46:43 +00:00
Fixes ConcurrentModificationException errors
This commit is contained in:
parent
f2b6387cc9
commit
d28ca387d0
@ -124,7 +124,7 @@ public class GameServer implements Runnable {
|
|||||||
|
|
||||||
|
|
||||||
//Process user code
|
//Process user code
|
||||||
ArrayList<User> users_ = gameUniverse.getUsers();
|
ArrayList<User> users_ = new ArrayList<>(gameUniverse.getUsers());
|
||||||
for (User user : users_) {
|
for (User user : users_) {
|
||||||
|
|
||||||
if (user.getCpu() != null) {
|
if (user.getCpu() != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user