mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 14:46:46 +01:00
Fix an IndexOutOfBoundsException: Index: 0
In SaveTimerTask.java Fixes #2039
This commit is contained in:
parent
38e1947302
commit
0185a30ec9
@ -62,8 +62,10 @@ public final class UserManager {
|
||||
Collection<McMMOPlayer> playerCollection = new ArrayList<McMMOPlayer>();
|
||||
|
||||
for (Player player : mcMMO.p.getServer().getOnlinePlayers()) {
|
||||
if (hasPlayerDataKey(player)) {
|
||||
playerCollection.add(getPlayer(player));
|
||||
}
|
||||
}
|
||||
|
||||
return playerCollection;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user