more stuff uses StaticBlock class now

This commit is contained in:
GameHerobrine 2023-07-08 20:54:03 +03:00
parent 9cb7fbafaa
commit e70c501df8
12 changed files with 49 additions and 86 deletions

View file

@ -184,9 +184,10 @@ class RailLogic
$meta = $this->level->level->getBlockDamage($this->x, $this->x, $this->z) & 8 | $state;
}
$b = $this->level->getBlockWithoutVector($this->x, $this->y, $this->z);
$b->setMetadata($meta);
$this->level->setBlock(new Vector3($this->x, $this->y, $this->z), $b, true, false, true);
//$b = $this->level->getBlockWithoutVector($this->x, $this->y, $this->z);
//$b->setMetadata($meta);
//$this->level->setBlock(new Vector3($this->x, $this->y, $this->z), $b, true, false, true);
$this->level->fastSetBlockUpdateMeta($this->x, $this->y, $this->z, $meta, true);
}
public function updateConnections($meta){