fix #2320 - Add null check for blockstate for effective override

This commit is contained in:
Justin Vitale 2021-01-15 00:37:26 +11:00
parent ea0db38b6a
commit 49a1cc1619

View file

@ -82,6 +82,10 @@ public class DrillItem extends PickaxeItem implements EnergyHolder, ItemDurabili
// PickaxeItem
@Override
public boolean isEffectiveOn(BlockState blockIn) {
if(blockIn == null){
return false;
}
if (Items.DIAMOND_PICKAXE.isEffectiveOn(blockIn)) {
return true;
}