From b88d7b3e6002569c27601bd187b77eabfc723da4 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Fri, 10 Jan 2020 14:26:24 +0100 Subject: [PATCH] Don't send bad packets --- .../src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java index 6329c16e6..ad9cc01c3 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPlayer.java @@ -353,8 +353,8 @@ public class BukkitPlayer extends AbstractPlayerActor { if (block instanceof BaseBlock && ((BaseBlock) block).hasNbtData()) { BukkitImplAdapter adapter = WorldEditPlugin.getInstance().getBukkitImplAdapter(); if (adapter != null) { - adapter.sendFakeNBT(player, pos, ((BaseBlock) block).getNbtData()); if (block.getBlockType() == BlockTypes.STRUCTURE_BLOCK) { + adapter.sendFakeNBT(player, pos, ((BaseBlock) block).getNbtData()); adapter.sendFakeOP(player); } }