mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
fixed cactuses not getting dropped when the grow
This commit is contained in:
parent
c07c5e5abd
commit
e30586fff2
2 changed files with 3 additions and 2 deletions
|
|
@ -22,7 +22,8 @@ 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 + $yy, $z, $level), new CactusBlock(), true, false, true);
|
||||
$level->fastSetBlockUpdate($x, $y + $yy, $z, CACTUS, 0);
|
||||
$level->getBlockWithoutVector($x, $y + $yy, $z)->onUpdate(BLOCK_UPDATE_NORMAL); //TODO rewrite ticking
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue