mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +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>();
|
Collection<McMMOPlayer> playerCollection = new ArrayList<McMMOPlayer>();
|
||||||
|
|
||||||
for (Player player : mcMMO.p.getServer().getOnlinePlayers()) {
|
for (Player player : mcMMO.p.getServer().getOnlinePlayers()) {
|
||||||
|
if (hasPlayerDataKey(player)) {
|
||||||
playerCollection.add(getPlayer(player));
|
playerCollection.add(getPlayer(player));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return playerCollection;
|
return playerCollection;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user