Fixed abilities activating with the wrong tool in hand

This commit is contained in:
GJ
2013-01-25 13:54:32 -05:00
parent c220f0dee5
commit 91e8051cee
4 changed files with 44 additions and 42 deletions

View File

@ -296,7 +296,7 @@ public class BlockChecks {
}
}
public static boolean isLog (Block block) {
public static boolean isLog(Block block) {
if (block.getType().equals(Material.LOG) || (customBlocksEnabled && ModChecks.isCustomLogBlock(block))) {
return true;
}
@ -304,6 +304,13 @@ public class BlockChecks {
return false;
}
public static boolean isLeaves(Block block) {
if (block.getType().equals(Material.LEAVES) || (configInstance.getBlockModsEnabled() && ModChecks.isCustomLeafBlock(block))) {
return true;
}
return false;
}
public static boolean canBeFluxMined(Block block) {
switch (block.getType()) {
case IRON_ORE: