From 91d294acff4fdf7bd13ca9d976d075b11fc7f1ae Mon Sep 17 00:00:00 2001 From: matix931 Date: Wed, 5 Sep 2012 11:19:34 +0300 Subject: [PATCH] Update src/main/java/com/gmail/nossr50/skills/gathering/Mining.java Another change against 1.3.2 --- .../gmail/nossr50/skills/gathering/Mining.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/skills/gathering/Mining.java b/src/main/java/com/gmail/nossr50/skills/gathering/Mining.java index 8c7cf099d..9745af86a 100644 --- a/src/main/java/com/gmail/nossr50/skills/gathering/Mining.java +++ b/src/main/java/com/gmail/nossr50/skills/gathering/Mining.java @@ -85,6 +85,12 @@ public class Mining { Misc.dropItem(location, item); } break; + + case EMERALD_ORE: + if (configInstance.getEmeraldDoubleDropsEnabled()) { + Misc.dropItem(location, item); + } + break; default: if (ModChecks.isCustomMiningBlock(block)) { @@ -194,6 +200,13 @@ public class Mining { Misc.dropItem(location, item); } break; + + case EMERALD_ORE: + if (configInstance.getEmeraldDoubleDropsEnabled()) { + item = new ItemStack(Material.EMERALD); + Misc.dropItem(location, item); + } + break; default: if (ModChecks.isCustomMiningBlock(block)) { @@ -279,6 +292,10 @@ public class Mining { case STONE: xp += Config.getInstance().getMiningXPStone(); break; + + case EMERALD_ORE: + xp += Config.getInstance().getMiningXPEmeraldOre(); + break; default: if (ModChecks.isCustomMiningBlock(block)) { @@ -367,6 +384,7 @@ public class Mining { case GOLD_ORE: case LAPIS_ORE: case REDSTONE_ORE: + case EMERALD_ORE; if (tier < 3) { return; }