From 2933f80d699369734a38f1997f950d4535620088 Mon Sep 17 00:00:00 2001 From: Glitchfinder Date: Tue, 8 Jan 2013 01:32:42 -0800 Subject: [PATCH] Fixing yet another concurrency error. --- .../nossr50/util/blockmeta/chunkmeta/HashChunkManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;