Jelajahi Sumber

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

Glitchfinder 12 tahun lalu
induk
melakukan
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;