From b9f2aa5effb7d131750eb836f4c7d5a60c35b35e Mon Sep 17 00:00:00 2001 From: Glitchfinder Date: Fri, 28 Dec 2012 12:14:25 -0800 Subject: [PATCH] Fixing an NPE involving custom blocks. More investigation needed to find the source of the issue. --- src/main/java/com/gmail/nossr50/skills/gathering/Mining.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;