mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09:44 +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);
|
$xOff = abs($xx - $x);
|
||||||
for($zz = $z - $mid; $zz <= $z + $mid; ++$zz){
|
for($zz = $z - $mid; $zz <= $z + $mid; ++$zz){
|
||||||
$zOff = abs($zz - $z);
|
$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;
|
continue;
|
||||||
}
|
}
|
||||||
if(!$level->getBlock(new Vector3($xx, $yy, $zz))->isSolid){
|
if(!$level->getBlock(new Vector3($xx, $yy, $zz))->isSolid){
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue