From 8f42dbf9a7102c46fceb9c90898604044580efd4 Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Sun, 13 Aug 2017 22:23:40 -0500 Subject: [PATCH] Fix for double chest delete exception --- .../main/java/com/boydti/fawe/forge/v111/ForgeChunk_All.java | 2 +- .../main/java/com/boydti/fawe/forge/v112/ForgeChunk_All.java | 2 +- .../java/com/boydti/fawe/sponge/v1_12/SpongeChunk_1_12.java | 2 +- .../java/com/boydti/fawe/sponge/v1_11/SpongeChunk_1_11.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/forge111/src/main/java/com/boydti/fawe/forge/v111/ForgeChunk_All.java b/forge111/src/main/java/com/boydti/fawe/forge/v111/ForgeChunk_All.java index 584e61d0..718c328b 100644 --- a/forge111/src/main/java/com/boydti/fawe/forge/v111/ForgeChunk_All.java +++ b/forge111/src/main/java/com/boydti/fawe/forge/v111/ForgeChunk_All.java @@ -273,8 +273,8 @@ public class ForgeChunk_All extends CharFaweChunk { int k = FaweCache.CACHE_J[ly][lz][lx]; if (array[k] != 0) { synchronized (ForgeChunk_All.class) { - tile.getValue().invalidate(); iterator.remove(); + tile.getValue().invalidate(); } } } diff --git a/forge112/src/main/java/com/boydti/fawe/forge/v112/ForgeChunk_All.java b/forge112/src/main/java/com/boydti/fawe/forge/v112/ForgeChunk_All.java index 258d3e41..fd3b60b4 100644 --- a/forge112/src/main/java/com/boydti/fawe/forge/v112/ForgeChunk_All.java +++ b/forge112/src/main/java/com/boydti/fawe/forge/v112/ForgeChunk_All.java @@ -273,8 +273,8 @@ public class ForgeChunk_All extends CharFaweChunk { int k = FaweCache.CACHE_J[ly][lz][lx]; if (array[k] != 0) { synchronized (ForgeChunk_All.class) { - tile.getValue().invalidate(); iterator.remove(); + tile.getValue().invalidate(); } } } diff --git a/sponge/src/main/java/com/boydti/fawe/sponge/v1_12/SpongeChunk_1_12.java b/sponge/src/main/java/com/boydti/fawe/sponge/v1_12/SpongeChunk_1_12.java index 26016579..ff6cb1c3 100644 --- a/sponge/src/main/java/com/boydti/fawe/sponge/v1_12/SpongeChunk_1_12.java +++ b/sponge/src/main/java/com/boydti/fawe/sponge/v1_12/SpongeChunk_1_12.java @@ -273,8 +273,8 @@ public class SpongeChunk_1_12 extends CharFaweChunk { 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(); } } } diff --git a/sponge111/src/main/java/com/boydti/fawe/sponge/v1_11/SpongeChunk_1_11.java b/sponge111/src/main/java/com/boydti/fawe/sponge/v1_11/SpongeChunk_1_11.java index 2537860c..3839e8d0 100644 --- a/sponge111/src/main/java/com/boydti/fawe/sponge/v1_11/SpongeChunk_1_11.java +++ b/sponge111/src/main/java/com/boydti/fawe/sponge/v1_11/SpongeChunk_1_11.java @@ -273,8 +273,8 @@ public class SpongeChunk_1_11 extends CharFaweChunk { 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(); } } }