SurvivalBlockBreakHandler: fixed block break effects stopping beyond 4 blocks distance

this was actually intended to be 16 blocks ...
This commit is contained in:
Dylan K. Taylor 2020-12-02 18:56:39 +00:00
parent 0574b59df9
commit 1775fb669b

View File

@ -101,7 +101,7 @@ final class SurvivalBlockBreakHandler{
public function update() : bool{
if(
$this->player->getPosition()->distanceSquared($this->blockPos->add(0.5, 0.5, 0.5)) > $this->maxPlayerDistance){
$this->player->getPosition()->distanceSquared($this->blockPos->add(0.5, 0.5, 0.5)) > $this->maxPlayerDistance ** 2){
return false;
}