From 5f04ecfdd4f055e7b776a154a6cd4deaccc1d8fc Mon Sep 17 00:00:00 2001 From: matix931 Date: Wed, 5 Sep 2012 11:45:43 +0300 Subject: [PATCH] Update src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java --- .../gmail/nossr50/skills/gathering/Herbalism.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java b/src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java index 71d957e3a..a0df2641e 100644 --- a/src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java +++ b/src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java @@ -191,6 +191,13 @@ public class Herbalism { xp = Config.getInstance().getHerbalismXPLilyPads(); } break; + + case COCOA: + if (data == (byte) 0x2) { + mat = Material.COCOA; + xp = Config.getInstance().getHerbalismXPCocoa(); + } + break; default: if (Config.getInstance().getBlockModsEnabled() && CustomBlocksConfig.getInstance().customHerbalismBlocks.contains(new ItemStack(block.getTypeId(), 1, (short) 0, block.getData()))) { @@ -285,6 +292,12 @@ public class Herbalism { Misc.dropItem(location, is); } break; + + case COCOA: + if (configInstance.getCocoaDoubleDropsEnabled()) { + Misc.dropItems(location, is); + } + break; default: if (customPlant) {