From 13b602cb8386d9167abf4d02689affe6b796c431 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sat, 29 Jun 2019 06:31:07 +1000 Subject: [PATCH] isAffectedBlock --- .../io/legacycompat/SignCompatibilityHandler.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/legacycompat/SignCompatibilityHandler.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/legacycompat/SignCompatibilityHandler.java index ecb270c6d..46a91b878 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/legacycompat/SignCompatibilityHandler.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/legacycompat/SignCompatibilityHandler.java @@ -36,13 +36,7 @@ public class SignCompatibilityHandler implements NBTCompatibilityHandler { @Override public > boolean isAffectedBlock(B block) { - switch (block.getBlockType().getInternalId()) { - case BlockID.SIGN: - case BlockID.WALL_SIGN: - return true; - default: - return false; - } + return block.getBlockType() == BlockTypes.SIGN || block.getBlockType() == BlockTypes.WALL_SIGN; } @Override