BlockHarness temp. fixes

This commit is contained in:
Rammelkast committed 2016-06-18 13:26:21 +02:00
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) {