mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Fixed ConcurrentModificationException on world unload
This commit is contained in:
parent
71b20bdeaa
commit
bdcc522897
@ -11,7 +11,8 @@ Version 1.3.10-dev
|
|||||||
+ Added permission node for Iron Grip ability (mcmmo.ability.unarmed.irongrip)
|
+ Added permission node for Iron Grip ability (mcmmo.ability.unarmed.irongrip)
|
||||||
+ Added ability for custom blocks to drop a range of items.
|
+ Added ability for custom blocks to drop a range of items.
|
||||||
+ Added Ability API functions
|
+ Added Ability API functions
|
||||||
+ Added 50% & 150% XP boost perks
|
+ Added 50% & 150% XP boost perks
|
||||||
|
= Fixed ConcurrentModificationException on world unload
|
||||||
= Fixed players never being removed from memory (memory leak)
|
= Fixed players never being removed from memory (memory leak)
|
||||||
= Fixed admin chat being seen by everyone
|
= Fixed admin chat being seen by everyone
|
||||||
= Fixed issue with UTFDataFormatException occurring on occasion when trying to load Chunklets
|
= Fixed issue with UTFDataFormatException occurring on occasion when trying to load Chunklets
|
||||||
|
@ -10,6 +10,7 @@ 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;
|
||||||
@ -86,10 +87,10 @@ public class HashChunkletManager implements ChunkletManager {
|
|||||||
|
|
||||||
String worldName = world.getName();
|
String worldName = world.getName();
|
||||||
|
|
||||||
for(String key : store.keySet()) {
|
for(Iterator<String> it = store.keySet().iterator() ; it.hasNext() ; ) {
|
||||||
String tempWorldName = key.split(",")[0];
|
String tempWorldName = it.next().split(",")[0];
|
||||||
if(tempWorldName.equals(worldName)) {
|
if(tempWorldName.equals(worldName)) {
|
||||||
store.remove(key);
|
it.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user