From 61298d2e3311b96f6b5d0ce7d90163ce8873b2cb Mon Sep 17 00:00:00 2001 From: Glitchfinder Date: Mon, 29 Oct 2012 12:27:10 -0700 Subject: [PATCH] Fixing checked data values for carrots and potatoes. --- .../java/com/gmail/nossr50/skills/gathering/Herbalism.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) mode change 100644 => 100755 src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java diff --git a/src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java b/src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java old mode 100644 new mode 100755 index 46006b882..f0e756b3d --- a/src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java +++ b/src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java @@ -62,8 +62,6 @@ public class Herbalism { } else if (Config.getInstance().getHerbalismGreenThumbCobbleToMossy() && type == Material.COBBLESTONE) { block.setType(Material.MOSSY_COBBLESTONE); - // Don't award double drops to mossified cobblestone - mcMMO.placeStore.setTrue(block); } } } @@ -202,14 +200,14 @@ public class Herbalism { break; case CARROT: - if (((byte) data) == 0x3) { + if (data == CropState.RIPE.getData()) { mat = Material.CARROT; xp = Config.getInstance().getHerbalismXPCarrot(); } break; case POTATO: - if (((byte) data) == 0x3) { + if (data == CropState.RIPE.getData()) { mat = Material.POTATO; xp = Config.getInstance().getHerbalismXPPotato(); }