Merge pull request #379 from Glitchfinder/master

Fixing an NPE
This commit is contained in:
Glitchfinder 2012-12-28 12:16:01 -08:00
commit 899bbfee40

View File

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