Better compatible way

Former-commit-id: 4ed23b94bb6ed6578ce94ff61c4840ff49ecc7fa [formerly bbb03e51559a7bb1a583a412d3d9cce9177b993b]
Former-commit-id: 2e9e12b9c57e92a8e8bb810907e719a76d7c0cbd
This commit is contained in:
Mgazul committed 2019-04-29 02:43:11 +08:00
1 parent e6e03d57fe
commit b28e08a803
1 file changed
+1 -6
@@ -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;
}