diff --git a/Allay-Server/src/main/java/org/allaymc/server/network/processor/PlayerAuthInputPacketProcessor.java b/Allay-Server/src/main/java/org/allaymc/server/network/processor/PlayerAuthInputPacketProcessor.java index b90332b76..bcf771b4b 100644 --- a/Allay-Server/src/main/java/org/allaymc/server/network/processor/PlayerAuthInputPacketProcessor.java +++ b/Allay-Server/src/main/java/org/allaymc/server/network/processor/PlayerAuthInputPacketProcessor.java @@ -210,7 +210,7 @@ protected void updateBreakingTime(EntityPlayer player) { // Breaking time has changed, make adjustments var currentTime = player.getWorld().getTick(); var timeLeft = stopBreakingTime - currentTime; - stopBreakingTime = currentTime + (timeLeft / needBreakingTime) * newBreakingTime; + stopBreakingTime = currentTime + timeLeft * (needBreakingTime / newBreakingTime); needBreakingTime = newBreakingTime; }