Explorar o código

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

Glitchfinder %!s(int64=12) %!d(string=hai) anos
pai
achega
b9f2aa5eff

+ 1 - 1
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;