mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
It's better that way
This commit is contained in:
parent
ee2a5c199a
commit
2faa0356a5
@ -10,7 +10,6 @@ import java.io.ObjectOutputStream;
|
|||||||
import java.io.StreamCorruptedException;
|
import java.io.StreamCorruptedException;
|
||||||
import java.io.UTFDataFormatException;
|
import java.io.UTFDataFormatException;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Iterator;
|
|
||||||
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Chunk;
|
import org.bukkit.Chunk;
|
||||||
@ -87,10 +86,11 @@ public class HashChunkletManager implements ChunkletManager {
|
|||||||
|
|
||||||
String worldName = world.getName();
|
String worldName = world.getName();
|
||||||
|
|
||||||
for(Iterator<String> it = store.keySet().iterator() ; it.hasNext() ; ) {
|
for(String key : store.keySet()) {
|
||||||
String tempWorldName = it.next().split(",")[0];
|
String tempWorldName = key.split(",")[0];
|
||||||
if(tempWorldName.equals(worldName)) {
|
if(tempWorldName.equals(worldName)) {
|
||||||
it.remove();
|
store.remove(key);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user