mirror of
https://github.com/ViaVersion/ViaLegacy.git
synced 2024-11-15 10:45:19 +01:00
Fixed NPE
This commit is contained in:
parent
5265311218
commit
5b069aa5e3
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user