some tweaks

This commit is contained in:
GameHerobrine 2024-05-23 06:38:20 +03:00
parent b94d0f2ba1
commit 3d6c4feb0f
7 changed files with 37 additions and 44 deletions

View file

@ -468,24 +468,18 @@ 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);
}