From 4c3f3ee4e2b8acdddfa3c3b0c34169a33f75b4f8 Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Thu, 31 Aug 2017 23:47:28 -0400 Subject: [PATCH] Dont use named seeds in replanting. Fixes #3273 --- .../gmail/nossr50/skills/herbalism/HerbalismManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/skills/herbalism/HerbalismManager.java b/src/main/java/com/gmail/nossr50/skills/herbalism/HerbalismManager.java index 7657a6128..19d1a6df8 100644 --- a/src/main/java/com/gmail/nossr50/skills/herbalism/HerbalismManager.java +++ b/src/main/java/com/gmail/nossr50/skills/herbalism/HerbalismManager.java @@ -303,7 +303,9 @@ public class HerbalismManager extends SkillManager { return; } - if (!playerInventory.contains(seed, 1)) { + ItemStack seedStack = new ItemStack(seed); + + if (!playerInventory.containsAtLeast(seedStack, 1)) { return; } @@ -315,7 +317,7 @@ public class HerbalismManager extends SkillManager { return; } - playerInventory.removeItem(new ItemStack(seed)); + playerInventory.removeItem(seedStack); player.updateInventory(); // Needed until replacement available new HerbalismBlockUpdaterTask(blockState).runTaskLater(mcMMO.p, 0); }