From 1f898cd0d1596969e8863d78263d0cf77767621a Mon Sep 17 00:00:00 2001 From: Aurora Date: Mon, 25 May 2020 18:32:41 +0200 Subject: [PATCH] Negate "hasCollision" for isTranslucent() also for 1.15.0 and 1.14 --- .../boydti/fawe/bukkit/adapter/mc1_14/BlockMaterial_1_14.java | 2 +- .../boydti/fawe/bukkit/adapter/mc1_15/BlockMaterial_1_15.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_14/BlockMaterial_1_14.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_14/BlockMaterial_1_14.java index 9c881f012..e3fa05135 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_14/BlockMaterial_1_14.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_14/BlockMaterial_1_14.java @@ -27,7 +27,7 @@ public class BlockMaterial_1_14 implements BlockMaterial { this.material = defaultState.getMaterial(); this.craftBlockData = CraftBlockData.fromData(defaultState); this.craftMaterial = craftBlockData.getMaterial(); - this.isTranslucent = ReflectionUtil.getField(Block.class, block, "v"); + this.isTranslucent = !(boolean) ReflectionUtil.getField(Block.class, block, "v"); } public Block getBlock() { diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_15/BlockMaterial_1_15.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_15/BlockMaterial_1_15.java index d7f67d2c3..fa1461340 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_15/BlockMaterial_1_15.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/mc1_15/BlockMaterial_1_15.java @@ -27,7 +27,7 @@ public class BlockMaterial_1_15 implements BlockMaterial { this.material = defaultState.getMaterial(); this.craftBlockData = CraftBlockData.fromData(defaultState); this.craftMaterial = craftBlockData.getMaterial(); - this.isTranslucent = ReflectionUtil.getField(Block.class, block, "v"); + this.isTranslucent = !(boolean) ReflectionUtil.getField(Block.class, block, "v"); } public Block getBlock() {