Merge pull request #692 from mikeprimm/doublechest_fix

Fix for double chest delete exception
This commit is contained in:
Jesse Boyd 2017-08-14 14:13:11 +10:00 committed by GitHub
commit a42eb98117
4 changed files with 4 additions and 4 deletions

View File

@ -273,8 +273,8 @@ public class ForgeChunk_All extends CharFaweChunk<Chunk, ForgeQueue_All> {
int k = FaweCache.CACHE_J[ly][lz][lx];
if (array[k] != 0) {
synchronized (ForgeChunk_All.class) {
tile.getValue().invalidate();
iterator.remove();
tile.getValue().invalidate();
}
}
}

View File

@ -273,8 +273,8 @@ public class ForgeChunk_All extends CharFaweChunk<Chunk, ForgeQueue_All> {
int k = FaweCache.CACHE_J[ly][lz][lx];
if (array[k] != 0) {
synchronized (ForgeChunk_All.class) {
tile.getValue().invalidate();
iterator.remove();
tile.getValue().invalidate();
}
}
}

View File

@ -273,8 +273,8 @@ public class SpongeChunk_1_12 extends CharFaweChunk<Chunk, SpongeQueue_1_12> {
int k = FaweCache.CACHE_J[ly][lz][lx];
if (array[k] != 0) {
synchronized (SpongeChunk_1_12.class) {
tile.getValue().invalidate();
iterator.remove();
tile.getValue().invalidate();
}
}
}

View File

@ -273,8 +273,8 @@ public class SpongeChunk_1_11 extends CharFaweChunk<Chunk, SpongeQueue_1_11> {
int k = FaweCache.CACHE_J[ly][lz][lx];
if (array[k] != 0) {
synchronized (SpongeChunk_1_11.class) {
tile.getValue().invalidate();
iterator.remove();
tile.getValue().invalidate();
}
}
}