From a6a4400317549427d460b3d3036f9225c20999b0 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Tue, 31 Mar 2020 10:26:23 +0100 Subject: [PATCH] Port fixed for #389 from 1.15.2 adapter to other adapters. --- .../fawe/bukkit/adapter/mc1_14/BukkitGetBlocks_1_14.java | 7 ++++--- .../fawe/bukkit/adapter/mc1_15/BukkitGetBlocks_1_15.java | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_14/BukkitGetBlocks_1_14.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_14/BukkitGetBlocks_1_14.java index b48a3e771..3fd910454 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_14/BukkitGetBlocks_1_14.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_14/BukkitGetBlocks_1_14.java @@ -205,9 +205,10 @@ public class BukkitGetBlocks_1_14 extends CharGetBlocks { if (this.sections == null) { this.sections = sections.clone(); } - if (this.sections[layer] != section) { - this.sections[layer] = section; - } + //TODO: Understand why this causes #329, what the purpose of this is, and what may or may not break after commenting this out. +// if (this.sections[layer] != section) { +// this.sections[layer] = section; +// } this.blocks[layer] = arr; } } diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_15/BukkitGetBlocks_1_15.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_15/BukkitGetBlocks_1_15.java index 2be4055d8..f3ef44996 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_15/BukkitGetBlocks_1_15.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_15/BukkitGetBlocks_1_15.java @@ -213,9 +213,10 @@ public class BukkitGetBlocks_1_15 extends CharGetBlocks { if (this.sections == null) { this.sections = sections.clone(); } - if (this.sections[layer] != section) { - this.sections[layer] = section; - } + //TODO: Understand why this causes #329, what the purpose of this is, and what may or may not break after commenting this out. +// if (this.sections[layer] != section) { +// this.sections[layer] = section; +// } this.blocks[layer] = arr; } }