From 49a1cc16190cda103450f8c870f484d34abe9607 Mon Sep 17 00:00:00 2001 From: Justin Vitale <4002351+justinvvitale@users.noreply.github.com> Date: Fri, 15 Jan 2021 00:37:26 +1100 Subject: [PATCH] fix #2320 - Add null check for blockstate for effective override --- src/main/java/techreborn/items/tool/DrillItem.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/techreborn/items/tool/DrillItem.java b/src/main/java/techreborn/items/tool/DrillItem.java index 940d5ae1a..6dae09ee4 100644 --- a/src/main/java/techreborn/items/tool/DrillItem.java +++ b/src/main/java/techreborn/items/tool/DrillItem.java @@ -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; }