Ensure one type of mushroom is held before checking Shroom Terra. Fixes

#734
This commit is contained in:
GJ 2013-02-25 11:51:29 -05:00
parent 26c2134484
commit 8001a928ea

View File

@ -364,7 +364,7 @@ public class PlayerListener implements Listener {
} }
/* SHROOM THUMB CHECK */ /* SHROOM THUMB CHECK */
else if (BlockChecks.canMakeShroomy(blockState)) { else if ((heldItem.getType() == Material.RED_MUSHROOM || heldItem.getType() == Material.BROWN_MUSHROOM) && BlockChecks.canMakeShroomy(blockState)) {
if (Herbalism.processShroomThumb(blockState, player) && SkillTools.blockBreakSimulate(block, player, false)) { if (Herbalism.processShroomThumb(blockState, player) && SkillTools.blockBreakSimulate(block, player, false)) {
blockState.update(true); blockState.update(true);
} }