Fixed NPE

This commit is contained in:
RaphiMC 2023-01-29 14:05:57 +01:00
parent 5265311218
commit 5b069aa5e3

View File

@ -112,7 +112,7 @@ public class BlockHardnessList {
}
public static boolean canBeBrokenInstantly(final int blockID) {
return HARDNESS_TABLE.get(blockID) == 0;
return HARDNESS_TABLE.getOrDefault(blockID, 0F) == 0F;
}
public static boolean canBeBrokenInstantly(final IdAndData block) {