mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
fixed crash
This commit is contained in:
parent
db23411e15
commit
1baafb8b26
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue