mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
small changes to chace
This commit is contained in:
parent
24c5ef8d3d
commit
65a85d6343
1 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ private static $leavesHeight = 4;
|
|||
$xOff = abs($xx - $x);
|
||||
for($zz = $z - $mid; $zz <= $z + $mid; ++$zz){
|
||||
$zOff = abs($zz - $z);
|
||||
if($xOff === $mid and $zOff === $mid and ($yOff === 0 or mt_rand(0, 2) === 0)){
|
||||
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){
|
||||
|
|
@ -73,4 +73,4 @@ private static $leavesHeight = 4;
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue