mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-02-05 22:31:28 +01:00
Fixed ConcurrentModificationException.
This commit is contained in:
parent
415715d952
commit
d9f8abd304
@ -1504,7 +1504,7 @@ public class IslandManager {
|
||||
}
|
||||
|
||||
public Island getIslandAtLocation(org.bukkit.Location location) {
|
||||
for (Island island : getIslands().values()) {
|
||||
for (Island island : new ArrayList<>(getIslands().values())) {
|
||||
if (isLocationAtIsland(island, location)) {
|
||||
return island;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user