ported by needs fixing

This commit is contained in:
GameHerobrine 2024-05-23 04:59:48 +03:00
parent fbf4131bbd
commit b94d0f2ba1
9 changed files with 201 additions and 13 deletions

View file

@ -468,18 +468,24 @@ class Level{
public function updateNeighborsAt($x, $y, $z, $oldID){
$block = $this->level->getBlockID($x - 1, $y, $z);
ConsoleAPI::debug(StaticBlock::getBlock($block));
if($block) StaticBlock::getBlock($block)::neighborChanged($this, $x - 1, $y, $z, $x, $y, $z, $oldID);
$block = $this->level->getBlockID($x + 1, $y, $z);
ConsoleAPI::debug(StaticBlock::getBlock($block));
if($block) StaticBlock::getBlock($block)::neighborChanged($this, $x + 1, $y, $z, $x, $y, $z, $oldID);
$block = $this->level->getBlockID($x, $y - 1, $z);
ConsoleAPI::debug(StaticBlock::getBlock($block));
if($block) StaticBlock::getBlock($block)::neighborChanged($this, $x, $y - 1, $z, $x, $y, $z, $oldID);
$block = $this->level->getBlockID($x, $y + 1, $z);
ConsoleAPI::debug(StaticBlock::getBlock($block));
if($block) StaticBlock::getBlock($block)::neighborChanged($this, $x, $y + 1, $z, $x, $y, $z, $oldID);
$block = $this->level->getBlockID($x, $y, $z - 1);
ConsoleAPI::debug(StaticBlock::getBlock($block));
if($block) StaticBlock::getBlock($block)::neighborChanged($this, $x, $y, $z - 1, $x, $y, $z, $oldID);
$block = $this->level->getBlockID($x, $y, $z + 1);
ConsoleAPI::debug(StaticBlock::getBlock($block));
if($block) StaticBlock::getBlock($block)::neighborChanged($this, $x, $y, $z + 1, $x, $y, $z, $oldID);
}