fix disabling visualiser breaking the functionality

This commit is contained in:
2026-09-29 19:30:39 +02:00
parent 17e183669f
commit fd69600b3e
@@ -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);