Fix Green Thumb not removing seeds when only one was left. Also fixed

Green Thumb not working on Cobblestone.
This commit is contained in:
GJ 2013-02-24 15:32:33 -05:00
parent 5cd542002e
commit 1fe471b005

View File

@ -353,10 +353,10 @@ public class PlayerListener implements Listener {
/* GREEN THUMB CHECK */ /* GREEN THUMB CHECK */
if (heldItem.getType() == Material.SEEDS && BlockChecks.canMakeMossy(blockState)) { 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)) { if (Herbalism.processGreenThumbBlocks(blockState, player) && SkillTools.blockBreakSimulate(block, player, false)) {
blockState.update(); blockState.update(true);
} }
} }