diff --git a/src/main/java/com/gmail/nossr50/skills/gathering/Mining.java b/src/main/java/com/gmail/nossr50/skills/gathering/Mining.java index 2fe813fdb..db51cfd9b 100644 --- a/src/main/java/com/gmail/nossr50/skills/gathering/Mining.java +++ b/src/main/java/com/gmail/nossr50/skills/gathering/Mining.java @@ -308,7 +308,7 @@ public class Mining { break; default: - if (ModChecks.isCustomMiningBlock(block)) { + if (ModChecks.isCustomMiningBlock(block) && ModChecks.getCustomBlock(block) != null) { xp += ModChecks.getCustomBlock(block).getXpGain(); } break;