Explorar el Código

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

Glitchfinder hace 12 años
padre
commit
b9f2aa5eff
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
 
         default:
-            if (ModChecks.isCustomMiningBlock(block)) {
+            if (ModChecks.isCustomMiningBlock(block) && ModChecks.getCustomBlock(block) != null) {
                 xp += ModChecks.getCustomBlock(block).getXpGain();
             }
             break;