mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-02-27 06:21:59 +01:00
Instantaneous now only works on the correct blocks
This commit is contained in:
parent
3dbb602ee3
commit
dde6887123
@ -21,6 +21,9 @@ public final class Instantaneous extends EcoEnchant {
|
|||||||
if(!EnchantmentUtils.passedChance(this, level))
|
if(!EnchantmentUtils.passedChance(this, level))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if(block.getDrops(player.getInventory().getItemInMainHand()).isEmpty())
|
||||||
|
return;
|
||||||
|
|
||||||
AnticheatManager.exemptPlayer(player);
|
AnticheatManager.exemptPlayer(player);
|
||||||
|
|
||||||
event.setInstaBreak(true);
|
event.setInstaBreak(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user