mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
more stuff uses StaticBlock class now
This commit is contained in:
parent
9cb7fbafaa
commit
e70c501df8
12 changed files with 49 additions and 86 deletions
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue