Don't send bad packets

This commit is contained in:
NotMyFault 2020-01-10 14:26:24 +01:00
parent 3ee920f9e6
commit b88d7b3e60

View File

@ -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);
}
}