more stuff uses StaticBlock class now

This commit is contained in:
GameHerobrine 2023-07-08 20:54:03 +03:00
parent 9cb7fbafaa
commit e70c501df8
12 changed files with 49 additions and 86 deletions

View file

@ -25,8 +25,8 @@ class LeavesBlock extends TransparentBlock{
}
$visited[$index] = true;
$block = $level->getBlockWithoutVector($x, $y, $z, false);
if($block instanceof WoodBlock){ //type doesn't matter
$block = $level->level->getBlockID($x, $y, $z);
if($block === WOOD){ //type doesn't matter
return true;
}