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); }