Clean up ID flattening hacks

This commit is contained in:
Dylan K. Taylor
2019-02-21 10:38:29 +00:00
parent 89fce7712a
commit 635fb5dde4
59 changed files with 231 additions and 212 deletions

View File

@ -40,8 +40,8 @@ class NetherReactor extends Solid{
return $this->state;
}
public function readStateFromMeta(int $meta) : void{
$this->state = BlockDataValidator::readBoundedInt("state", $meta, 0, 2);
public function readStateFromData(int $id, int $stateMeta) : void{
$this->state = BlockDataValidator::readBoundedInt("state", $stateMeta, 0, 2);
}
public function getStateBitmask() : int{