mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 06:28:52 +00:00
BlockHarness temp. fixes
This commit is contained in:
1 parent
37180450ce
commit
f8a58fa888
1 file changed
+6
-2
@@ -202,8 +202,12 @@ public enum BlockHardness {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static double getBlockHardness(Material m) {
|
public static double getBlockHardness(Material m) {
|
||||||
BlockHardness h = getHardness(m);
|
try {
|
||||||
return h == null ? 0D : h.hardness;
|
BlockHardness h = getHardness(m);
|
||||||
|
return h == null ? 0D : h.hardness;
|
||||||
|
}catch(Exception e) {
|
||||||
|
return 0D;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean hasBlockHardness(Material m) {
|
public static boolean hasBlockHardness(Material m) {
|
||||||
|
|||||||
Reference in new issue
Block a user