mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-10 13:35:29 +00:00
Update SurvivalBlockBreakHandler.php
This commit is contained in:
parent
49aa1986bb
commit
0b2a8d27f3
@ -67,7 +67,6 @@ final class SurvivalBlockBreakHandler{
|
|||||||
if(!$this->block->getBreakInfo()->isBreakable()){
|
if(!$this->block->getBreakInfo()->isBreakable()){
|
||||||
return 0.0;
|
return 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$breakTimePerTick = $this->block->getBreakInfo()->getBreakTime($this->player->getHotbar()->getHeldItem()) * 20;
|
$breakTimePerTick = $this->block->getBreakInfo()->getBreakTime($this->player->getHotbar()->getHeldItem()) * 20;
|
||||||
if(!$this->player->isOnGround() && !$this->player->isFlying()){
|
if(!$this->player->isOnGround() && !$this->player->isFlying()){
|
||||||
$breakTimePerTick *= 5;
|
$breakTimePerTick *= 5;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user