mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 04:59:46 +00:00
cactuses should grow now
This commit is contained in:
parent
e70c501df8
commit
db23411e15
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ class CactusBlock extends TransparentBlock{
|
||||||
for($yy = 1; $yy < 3; ++$yy){
|
for($yy = 1; $yy < 3; ++$yy){
|
||||||
$bID = $level->level->getBlockID($x, $y + $yy, $z);
|
$bID = $level->level->getBlockID($x, $y + $yy, $z);
|
||||||
if($bID === AIR){
|
if($bID === AIR){
|
||||||
$level->setBlock(new Position($x, $y, $z, $level), new CactusBlock(), true, false, true);
|
$level->setBlock(new Position($x, $y + $yy, $z, $level), new CactusBlock(), true, false, true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue