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

This commit is contained in:
Glitchfinder 2012-12-28 12:14:25 -08:00
parent b491090037
commit b9f2aa5eff

View File

@ -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;