mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +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) {
|
||||
BlockHardness h = getHardness(m);
|
||||
return h == null ? 0D : h.hardness;
|
||||
try {
|
||||
BlockHardness h = getHardness(m);
|
||||
return h == null ? 0D : h.hardness;
|
||||
}catch(Exception e) {
|
||||
return 0D;
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean hasBlockHardness(Material m) {
|
||||
|
||||
Reference in new issue
Block a user