Browse Source

Fixing an NPE involving custom blocks. More investigation needed to find the source of the issue.

Glitchfinder 12 years ago
parent
commit
b9f2aa5eff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/gmail/nossr50/skills/gathering/Mining.java

+ 1 - 1
src/main/java/com/gmail/nossr50/skills/gathering/Mining.java

@@ -308,7 +308,7 @@ public class Mining {
             break;
             break;
 
 
         default:
         default:
-            if (ModChecks.isCustomMiningBlock(block)) {
+            if (ModChecks.isCustomMiningBlock(block) && ModChecks.getCustomBlock(block) != null) {
                 xp += ModChecks.getCustomBlock(block).getXpGain();
                 xp += ModChecks.getCustomBlock(block).getXpGain();
             }
             }
             break;
             break;