mirror of
https://github.com/YouHaveTrouble/Enchantio.git
synced 2026-10-26 20:35:30 +00:00
fix disabling visualiser breaking the functionality
This commit is contained in:
@@ -71,7 +71,6 @@ public class TunnellingListener implements Listener {
|
|||||||
if (item.isEmpty()) return;
|
if (item.isEmpty()) return;
|
||||||
int enchantLevel = item.getEnchantmentLevel(tunnelling);
|
int enchantLevel = item.getEnchantmentLevel(tunnelling);
|
||||||
if (enchantLevel == -1) return;
|
if (enchantLevel == -1) return;
|
||||||
if (!tunnellingEnchant.shouldVisualizeBreaking()) return;
|
|
||||||
if (blockBreakData.containsKey(player.getUniqueId())) return;
|
if (blockBreakData.containsKey(player.getUniqueId())) return;
|
||||||
Block block = event.getBlock();
|
Block block = event.getBlock();
|
||||||
Set<Block> blocksToBreak = getSquare(block, event.getBlockFace(), tunnellingEnchant.getBlocksPerLevel() * enchantLevel);
|
Set<Block> blocksToBreak = getSquare(block, event.getBlockFace(), tunnellingEnchant.getBlocksPerLevel() * enchantLevel);
|
||||||
|
|||||||
Reference in New Issue
Block a user