small fix 1

This commit is contained in:
GameHerobrine 2022-05-15 18:09:43 +03:00
parent 77961f1513
commit 29cf552dbe

View file

@ -69,8 +69,7 @@ class SmallTreeObject extends TreeObject{
$x = $pos->getX();
$y = $pos->getY();
$z = $pos->getZ();
$this->placeTrunk($level, $x, $y, $z, $random, $this->treeHeight - 1);
for($yy = $y - 3 + $this->treeHeight; $yy <= $y + $this->treeHeight; ++$yy){
$yOff = $yy - ($y + $this->treeHeight);
$mid = (int) (1 - $yOff / 2);
@ -88,6 +87,8 @@ class SmallTreeObject extends TreeObject{
}
}
}
$this->placeTrunk($level, $x, $y, $z, $random, $this->treeHeight - 1);
}
}