mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
more test fixes
This commit is contained in:
parent
65a85d6343
commit
fc154cf903
1 changed files with 3 additions and 3 deletions
|
|
@ -48,9 +48,9 @@ private static $leavesHeight = 4;
|
|||
if($xOff === $mid and $zOff === $mid and ($yOff === 0 or mt_rand(0, 1) === 0)){
|
||||
continue;
|
||||
}
|
||||
if(!$level->getBlock(new Vector3($xx, $yy, $zz))->isSolid){
|
||||
$leafpos = new Vector3($xx, $yy, $zz);
|
||||
$level->setBlockRaw($leafpos, new LeavesBlock($this->type));
|
||||
$b = $level->getBlock(new Vector3($xx, $yy, $zz));
|
||||
if(($b instanceof LeavesBlock) || $b->getID() == 0){
|
||||
$level->setBlockRaw($b, new LeavesBlock($this->type));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue