mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-02 08:39:49 +01:00
Fixing a concurrent modification error.
This commit is contained in:
parent
707a388c51
commit
5b18abbea0
@ -223,7 +223,8 @@ public class HashChunkManager implements ChunkManager {
|
||||
|
||||
boolean unloaded = false;
|
||||
if(!store.containsKey(world.getName() + "," + cx + "," + cz)) {
|
||||
for(Entity entity : spawnedMobs) {
|
||||
List<Entity> tempSpawnedMobs = new ArrayList<Entity>(spawnedMobs);
|
||||
for(Entity entity : tempSpawnedMobs) {
|
||||
if(!isEntityInChunk(entity, cx, cz, world))
|
||||
continue;
|
||||
|
||||
@ -233,7 +234,8 @@ public class HashChunkManager implements ChunkManager {
|
||||
}
|
||||
|
||||
if(!unloaded) {
|
||||
for(Entity entity : spawnedPets) {
|
||||
List<Entity> tempSpawnedPets = new ArrayList<Entity>(spawnedPets);
|
||||
for(Entity entity : tempSpawnedPets) {
|
||||
if(!isEntityInChunk(entity, cx, cz, world))
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user