diff --git a/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/HashChunkManager.java b/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/HashChunkManager.java index 3cf9018fa..c7a7d18cf 100755 --- a/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/HashChunkManager.java +++ b/src/main/java/com/gmail/nossr50/util/blockmeta/chunkmeta/HashChunkManager.java @@ -319,7 +319,8 @@ public class HashChunkManager implements ChunkManager { closeAll(); String worldName = world.getName(); - for(String key : store.keySet()) { + List keys = new ArrayList(store.keySet()); + for(String key : keys) { String[] info = key.split(","); if(worldName.equals(info[0])) { int cx = 0; @@ -371,7 +372,8 @@ public class HashChunkManager implements ChunkManager { closeAll(); String worldName = world.getName(); - for(String key : store.keySet()) { + List keys = new ArrayList(store.keySet()); + for(String key : keys) { String[] info = key.split(","); if(worldName.equals(info[0])) { int cx = 0;