mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Clean up ID flattening hacks
This commit is contained in:
@ -39,6 +39,11 @@ class RedstoneTorch extends Torch{
|
||||
return $this->lit ? parent::getId() : $this->idInfo->getSecondId();
|
||||
}
|
||||
|
||||
public function readStateFromData(int $id, int $stateMeta) : void{
|
||||
parent::readStateFromData($id, $stateMeta);
|
||||
$this->lit = $id !== $this->idInfo->getSecondId();
|
||||
}
|
||||
|
||||
public function isLit() : bool{
|
||||
return $this->lit;
|
||||
}
|
||||
|
Reference in New Issue
Block a user