mirror of
https://github.com/YouHaveTrouble/Enchantio.git
synced 2026-10-26 12:25:28 +00:00
adjust the mining visualisation when shifting
This commit is contained in:
@@ -53,6 +53,10 @@ public class TunnellingListener implements Listener {
|
||||
}
|
||||
BlockBreakData data = blockBreakData.get(uuid);
|
||||
if (data == null) return;
|
||||
if (player.isSneaking()) {
|
||||
updateBlockBreakProgress(player, data, 0);
|
||||
return;
|
||||
}
|
||||
long elapsed = System.currentTimeMillis() - data.startedBreakingAt();
|
||||
long elapsedTicks = elapsed / 50;
|
||||
float breakSpeed = data.block.getBreakSpeed(player);
|
||||
|
||||
Reference in New Issue
Block a user