From 1fe471b0057e0d5cd42b2f7d5f3c8c833b155fcf Mon Sep 17 00:00:00 2001 From: GJ Date: Sun, 24 Feb 2013 15:32:33 -0500 Subject: [PATCH] Fix Green Thumb not removing seeds when only one was left. Also fixed Green Thumb not working on Cobblestone. --- src/main/java/com/gmail/nossr50/listeners/PlayerListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java index 86e6eebd4..6b075c69d 100644 --- a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java @@ -353,10 +353,10 @@ public class PlayerListener implements Listener { /* GREEN THUMB CHECK */ if (heldItem.getType() == Material.SEEDS && BlockChecks.canMakeMossy(blockState)) { - heldItem.setAmount(heldItem.getAmount() - 1); + player.setItemInHand(new ItemStack(Material.SEEDS, heldItem.getAmount() - 1)); if (Herbalism.processGreenThumbBlocks(blockState, player) && SkillTools.blockBreakSimulate(block, player, false)) { - blockState.update(); + blockState.update(true); } }