Return the default Material not the null

Former-commit-id: ffa521c2dccf044a6fe780726058081d2940bea5 [formerly a95bf0361ec0a76fdb785b43bdc36a8f19549ba2]
Former-commit-id: d8d03d21e5a136b4fa1cd3e93b4ef1a37893c3a2
This commit is contained in:
Ghost_chu committed 2019-06-28 19:25:37 +08:00
1 parent 1b912f4a25
commit 37aac52e12
1 file changed
+6 -2
@@ -898,8 +898,12 @@ public class Util {
return signMaterial;
}
//What the fuck!?
plugin.getLogger().warning("QuickShop can't found any useable sign material, report to author!");
return null;
plugin.getLogger().warning("QuickShop can't found any useable sign material, we will use default Sign Material.");
try {
return Material.OAK_WALL_SIGN;
} catch (Throwable e) {
return Material.matchMaterial("WALL_SIGN");
}
}
/**