Update SurvivalBlockBreakHandler.php

This commit is contained in:
Dylan T. 2025-02-04 16:48:33 +00:00 committed by GitHub
parent 49aa1986bb
commit 0b2a8d27f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,7 +67,6 @@ final class SurvivalBlockBreakHandler{
if(!$this->block->getBreakInfo()->isBreakable()){
return 0.0;
}
$breakTimePerTick = $this->block->getBreakInfo()->getBreakTime($this->player->getHotbar()->getHeldItem()) * 20;
if(!$this->player->isOnGround() && !$this->player->isFlying()){
$breakTimePerTick *= 5;