From 4ae276d1d76d4949d7b032437bde6804806899c5 Mon Sep 17 00:00:00 2001 From: bm01 Date: Sat, 16 Feb 2013 21:14:23 +0100 Subject: [PATCH] Fixed Tree Feller not being activated on big mushrooms --- src/main/java/com/gmail/nossr50/util/BlockChecks.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/util/BlockChecks.java b/src/main/java/com/gmail/nossr50/util/BlockChecks.java index c2e164ad2..2426191c8 100644 --- a/src/main/java/com/gmail/nossr50/util/BlockChecks.java +++ b/src/main/java/com/gmail/nossr50/util/BlockChecks.java @@ -316,11 +316,15 @@ public final class BlockChecks { } public static boolean isLog(Block block) { - if (block.getType() == Material.LOG || (configInstance.getBlockModsEnabled() && ModChecks.isCustomLogBlock(block))) { + switch (block.getType()) { + case LOG: + case HUGE_MUSHROOM_1: + case HUGE_MUSHROOM_2: return true; - } - return false; + default: + return (configInstance.getBlockModsEnabled() && ModChecks.isCustomLogBlock(block)); + } } public static boolean isLeaves(Block block) { @@ -330,6 +334,7 @@ public final class BlockChecks { return false; } + public static boolean canBeFluxMined(Block block) { switch (block.getType()) { case IRON_ORE: