mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-01 16:19:53 +01:00
Fix Green Thumb not removing seeds when only one was left. Also fixed
Green Thumb not working on Cobblestone.
This commit is contained in:
parent
5cd542002e
commit
1fe471b005
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user