From 4137d0a91ad26ef128f5fcee65c9b43acd44e52d Mon Sep 17 00:00:00 2001 From: Sauilitired Date: Sun, 31 Mar 2019 10:45:42 +0200 Subject: [PATCH] Fix the tile entity deal-io only --- .../boydti/fawe/bukkit/adapter/v1_13_1/Spigot_v1_13_R2.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/v1_13_1/Spigot_v1_13_R2.java b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/v1_13_1/Spigot_v1_13_R2.java index b8e28aad4..628956cdf 100644 --- a/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/v1_13_1/Spigot_v1_13_R2.java +++ b/worldedit-bukkit/src/main/java/com/boydti/fawe/bukkit/adapter/v1_13_1/Spigot_v1_13_R2.java @@ -252,11 +252,10 @@ public final class Spigot_v1_13_R2 extends CachedBukkitAdapter implements Bukkit BlockPosition pos = new BlockPosition(x, y, z); - nmsChunk.d(pos); + nmsChunk.d(pos); // Force delete the old tile entity CompoundTag nativeTag = state instanceof BaseBlock ? ((BaseBlock)state).getNbtData() : null; if (nativeTag != null || existing instanceof TileEntityBlock) { - pos = new BlockPosition(x, y, z); nmsWorld.setTypeAndData(pos, blockData, 0); // remove tile if (nativeTag != null) { @@ -284,7 +283,6 @@ public final class Spigot_v1_13_R2 extends CachedBukkitAdapter implements Bukkit } } if (update) { - if (pos == null) pos = new BlockPosition(x, y, z); nmsWorld.getMinecraftWorld().notify(pos, existing, blockData, 0); } return true;