Update src/main/java/com/gmail/nossr50/skills/gathering/Mining.java

Another change against 1.3.2
This commit is contained in:
matix931 2012-09-05 11:19:34 +03:00
parent f8d525d797
commit 91d294acff

View File

@ -85,6 +85,12 @@ public class Mining {
Misc.dropItem(location, item); Misc.dropItem(location, item);
} }
break; break;
case EMERALD_ORE:
if (configInstance.getEmeraldDoubleDropsEnabled()) {
Misc.dropItem(location, item);
}
break;
default: default:
if (ModChecks.isCustomMiningBlock(block)) { if (ModChecks.isCustomMiningBlock(block)) {
@ -194,6 +200,13 @@ public class Mining {
Misc.dropItem(location, item); Misc.dropItem(location, item);
} }
break; break;
case EMERALD_ORE:
if (configInstance.getEmeraldDoubleDropsEnabled()) {
item = new ItemStack(Material.EMERALD);
Misc.dropItem(location, item);
}
break;
default: default:
if (ModChecks.isCustomMiningBlock(block)) { if (ModChecks.isCustomMiningBlock(block)) {
@ -279,6 +292,10 @@ public class Mining {
case STONE: case STONE:
xp += Config.getInstance().getMiningXPStone(); xp += Config.getInstance().getMiningXPStone();
break; break;
case EMERALD_ORE:
xp += Config.getInstance().getMiningXPEmeraldOre();
break;
default: default:
if (ModChecks.isCustomMiningBlock(block)) { if (ModChecks.isCustomMiningBlock(block)) {
@ -367,6 +384,7 @@ public class Mining {
case GOLD_ORE: case GOLD_ORE:
case LAPIS_ORE: case LAPIS_ORE:
case REDSTONE_ORE: case REDSTONE_ORE:
case EMERALD_ORE;
if (tier < 3) { if (tier < 3) {
return; return;
} }