From 8001a928ea6a21a96b9ac74650a62bc2fbe16e1b Mon Sep 17 00:00:00 2001 From: GJ Date: Mon, 25 Feb 2013 11:51:29 -0500 Subject: [PATCH] Ensure one type of mushroom is held before checking Shroom Terra. Fixes #734 --- src/main/java/com/gmail/nossr50/listeners/PlayerListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java index a55554c12..a5a30477f 100644 --- a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java @@ -364,7 +364,7 @@ public class PlayerListener implements Listener { } /* 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)) { blockState.update(true); }