mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 16:46:46 +01:00
Custom blocks should now work right with Super Breaker.
This commit is contained in:
parent
d17fe6bb7a
commit
efcc15d89d
@ -250,6 +250,21 @@ public class Mining {
|
|||||||
int durabilityLoss = Config.getInstance().getAbilityToolDamage();
|
int durabilityLoss = Config.getInstance().getAbilityToolDamage();
|
||||||
FakePlayerAnimationEvent armswing = new FakePlayerAnimationEvent(player);
|
FakePlayerAnimationEvent armswing = new FakePlayerAnimationEvent(player);
|
||||||
|
|
||||||
|
if (Config.getInstance().getBlockModsEnabled() && CustomBlocksConfig.getInstance().customItems.contains(new ItemStack(block.getTypeId(), 1, (short) 0, block.getData()))) {
|
||||||
|
if (mcMMO.placeStore.isTrue(block)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
mcMMO.p.getServer().getPluginManager().callEvent(armswing);
|
||||||
|
Skills.abilityDurabilityLoss(player.getItemInHand(), durabilityLoss);
|
||||||
|
|
||||||
|
miningBlockCheck(player, block);
|
||||||
|
|
||||||
|
if (Config.getInstance().spoutEnabled) {
|
||||||
|
SpoutSounds.playSoundForPlayer(SoundEffect.POP, player, block.getLocation());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case OBSIDIAN:
|
case OBSIDIAN:
|
||||||
if (tier < 4) {
|
if (tier < 4) {
|
||||||
@ -296,3 +311,4 @@ public class Mining {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user