mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
fix x2
This commit is contained in:
parent
29cf552dbe
commit
1ad37d36e1
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ class SmallTreeObject extends TreeObject{
|
||||||
$dirtpos = new Vector3($x, $y - 1, $z);
|
$dirtpos = new Vector3($x, $y - 1, $z);
|
||||||
$level->setBlockRaw($dirtpos, new DirtBlock());
|
$level->setBlockRaw($dirtpos, new DirtBlock());
|
||||||
|
|
||||||
for($yy = 0; $yy < $trunkHeight; ++$yy){
|
for($yy = 0; $yy < $this->treeHeight; ++$yy){
|
||||||
$blockId = $level->getBlock(new Vector3($x, $y + $yy, $z))->getID();
|
$blockId = $level->getBlock(new Vector3($x, $y + $yy, $z))->getID();
|
||||||
if(isset($this->overridable[$blockId])){
|
if(isset($this->overridable[$blockId])){
|
||||||
$trunkpos = new Vector3($x, $y + $yy, $z);
|
$trunkpos = new Vector3($x, $y + $yy, $z);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue