cactuses should grow now

This commit is contained in:
GameHerobrine 2023-07-08 20:56:11 +03:00
parent e70c501df8
commit db23411e15

View file

@ -18,7 +18,7 @@ class CactusBlock extends TransparentBlock{
for($yy = 1; $yy < 3; ++$yy){
$bID = $level->level->getBlockID($x, $y + $yy, $z);
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;
}
}