From 8871964be0c682d48166f89c5212b222939255ee Mon Sep 17 00:00:00 2001 From: Glitchfinder Date: Mon, 29 Oct 2012 12:33:13 -0700 Subject: [PATCH] Fixing checked data values for carrots and potatoes. --- .../java/com/gmail/nossr50/skills/gathering/Herbalism.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 46006b882..ee5f9e014 100644 --- a/src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java +++ b/src/main/java/com/gmail/nossr50/skills/gathering/Herbalism.java @@ -202,14 +202,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(); }