small changes to chace

This commit is contained in:
GameHerobrine 2023-03-06 15:03:26 +03:00
parent 24c5ef8d3d
commit 65a85d6343

View file

@ -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;
}
}
}
}