mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09:44 +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)){
|
if($xOff === $mid and $zOff === $mid and ($yOff === 0 or mt_rand(0, 1) === 0)){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if(!$level->getBlock(new Vector3($xx, $yy, $zz))->isSolid){
|
$b = $level->getBlock(new Vector3($xx, $yy, $zz));
|
||||||
$leafpos = new Vector3($xx, $yy, $zz);
|
if(($b instanceof LeavesBlock) || $b->getID() == 0){
|
||||||
$level->setBlockRaw($leafpos, new LeavesBlock($this->type));
|
$level->setBlockRaw($b, new LeavesBlock($this->type));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue