Fix for double chest delete exception

This commit is contained in:
Mike Primm 2017-08-13 22:23:40 -05:00
parent f0553f80ae
commit 8f42dbf9a7
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]; int k = FaweCache.CACHE_J[ly][lz][lx];
if (array[k] != 0) { if (array[k] != 0) {
synchronized (ForgeChunk_All.class) { synchronized (ForgeChunk_All.class) {
tile.getValue().invalidate();
iterator.remove(); 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]; int k = FaweCache.CACHE_J[ly][lz][lx];
if (array[k] != 0) { if (array[k] != 0) {
synchronized (ForgeChunk_All.class) { synchronized (ForgeChunk_All.class) {
tile.getValue().invalidate();
iterator.remove(); 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]; int k = FaweCache.CACHE_J[ly][lz][lx];
if (array[k] != 0) { if (array[k] != 0) {
synchronized (SpongeChunk_1_12.class) { synchronized (SpongeChunk_1_12.class) {
tile.getValue().invalidate();
iterator.remove(); 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]; int k = FaweCache.CACHE_J[ly][lz][lx];
if (array[k] != 0) { if (array[k] != 0) {
synchronized (SpongeChunk_1_11.class) { synchronized (SpongeChunk_1_11.class) {
tile.getValue().invalidate();
iterator.remove(); iterator.remove();
tile.getValue().invalidate();
} }
} }
} }