From b28e08a8037f8638e6db80ae7f6890832fe33bde Mon Sep 17 00:00:00 2001 From: Mgazul Date: Mon, 29 Apr 2019 02:43:11 +0800 Subject: [PATCH] Better compatible way Former-commit-id: 4ed23b94bb6ed6578ce94ff61c4840ff49ecc7fa [formerly bbb03e51559a7bb1a583a412d3d9cce9177b993b] Former-commit-id: 2e9e12b9c57e92a8e8bb810907e719a76d7c0cbd --- src/main/java/org/maxgamer/quickshop/Util/Util.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/org/maxgamer/quickshop/Util/Util.java b/src/main/java/org/maxgamer/quickshop/Util/Util.java index 62b1b6a6b..2d04d78c7 100644 --- a/src/main/java/org/maxgamer/quickshop/Util/Util.java +++ b/src/main/java/org/maxgamer/quickshop/Util/Util.java @@ -613,17 +613,12 @@ public class Util { Util.debugLog("Space:"+space); return space; } + public static boolean isWallSign(Material material) { try { if(Tag.WALL_SIGNS.isTagged(material)) return true; - if(material.name().endsWith("WALL_SIGN")) - return true; }catch (Throwable e) { - if(material==Material.LEGACY_WALL_SIGN) //1.13 compatiable - return true; - if(material.name().equals("WALL_SIGN")) //1.13 compatiable - return true; if(material.name().endsWith("WALL_SIGN")) return true; }