mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Better compatible way
Former-commit-id: 4ed23b94bb6ed6578ce94ff61c4840ff49ecc7fa [formerly bbb03e51559a7bb1a583a412d3d9cce9177b993b] Former-commit-id: 2e9e12b9c57e92a8e8bb810907e719a76d7c0cbd
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user