Added functionality to specify custom blocks that should not trigger

abilities.
This commit is contained in:
GJ
2012-06-27 14:46:31 -04:00
parent bdcc522897
commit ee2a5c199a
3 changed files with 30 additions and 7 deletions

View File

@ -97,6 +97,9 @@ public class BlockChecks {
if (block.getTypeId() == Config.getInstance().getRepairAnvilId()) {
return false;
}
else if (customBlocksEnabled && CustomBlocksConfig.getInstance().customAbilityBlocks.contains(new ItemStack(block.getTypeId(), 1, (short) 0, block.getData()))) {
return false;
}
else {
return true;
}