Fixed Tree Feller not being activated on big mushrooms

This commit is contained in:
bm01 2013-02-16 21:14:23 +01:00
parent f6b38ab32a
commit 4ae276d1d7

View File

@ -316,11 +316,15 @@ public final class BlockChecks {
} }
public static boolean isLog(Block block) { 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 true;
}
return false; default:
return (configInstance.getBlockModsEnabled() && ModChecks.isCustomLogBlock(block));
}
} }
public static boolean isLeaves(Block block) { public static boolean isLeaves(Block block) {
@ -330,6 +334,7 @@ public final class BlockChecks {
return false; return false;
} }
public static boolean canBeFluxMined(Block block) { public static boolean canBeFluxMined(Block block) {
switch (block.getType()) { switch (block.getType()) {
case IRON_ORE: case IRON_ORE: