mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
more stuff uses StaticBlock class now
This commit is contained in:
parent
9cb7fbafaa
commit
e70c501df8
12 changed files with 49 additions and 86 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue