fixed crash

This commit is contained in:
GameHerobrine 2023-07-08 22:08:44 +03:00
parent db23411e15
commit 1baafb8b26
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@ class LeavesBlock extends TransparentBlock{
return true;
}
if($block->getId() === LEAVES && $distance <= 4){
if($block === LEAVES && $distance <= 4){
if(self::findLog($level, $x - 1, $y, $z, $visited, $distance + 1)) return true;
if(self::findLog($level, $x + 1, $y, $z, $visited, $distance + 1)) return true;
if(self::findLog($level, $x, $y, $z - 1, $visited, $distance + 1)) return true;