mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Fixed Tree Feller not being activated on big mushrooms
This commit is contained in:
parent
f6b38ab32a
commit
4ae276d1d7
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user