mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 05:06: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) {
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user