sugracane & cactus fixed, fixed sigsegv too early

This commit is contained in:
GameHerobrine 2024-05-25 13:30:14 +03:00
parent b52e050f8c
commit 2ad06e202f
3 changed files with 14 additions and 12 deletions

View file

@ -39,7 +39,7 @@ class CactusBlock extends TransparentBlock{
}
public static function neighborChanged(Level $level, $x, $y, $z, $nX, $nY, $nZ, $oldID){
$down = $level->level->getBlockID($x, $y, $z);
$down = $level->level->getBlockID($x, $y - 1, $z);
$b0 = $level->level->getBlockID($x, $y, $z - 1);
$b1 = $level->level->getBlockID($x, $y, $z + 1);
$b2 = $level->level->getBlockID($x - 1, $y, $z);