Mod support - able to define tiers for custom blocks now.

Tier 1 - breaks with wood/gold
Tier 2 - breaks with stone
Tier 3 - breaks with iron
Tier 4 - breaks with diamond
This commit is contained in:
GJ
2012-05-17 21:57:41 -04:00
parent efcc15d89d
commit c559e70270
4 changed files with 19 additions and 2 deletions

View File

@ -251,6 +251,10 @@ public class Mining {
FakePlayerAnimationEvent armswing = new FakePlayerAnimationEvent(player);
if (Config.getInstance().getBlockModsEnabled() && CustomBlocksConfig.getInstance().customItems.contains(new ItemStack(block.getTypeId(), 1, (short) 0, block.getData()))) {
if (ModChecks.getCustomBlock(block).getTier() < tier) {
return;
}
if (mcMMO.placeStore.isTrue(block)) {
return;
}