mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Clean up ID flattening hacks
This commit is contained in:
@ -46,8 +46,8 @@ class SnowLayer extends Flowable implements Fallable{
|
||||
return $this->layers - 1;
|
||||
}
|
||||
|
||||
public function readStateFromMeta(int $meta) : void{
|
||||
$this->layers = BlockDataValidator::readBoundedInt("layers", $meta + 1, 1, 8);
|
||||
public function readStateFromData(int $id, int $stateMeta) : void{
|
||||
$this->layers = BlockDataValidator::readBoundedInt("layers", $stateMeta + 1, 1, 8);
|
||||
}
|
||||
|
||||
public function getStateBitmask() : int{
|
||||
|
Reference in New Issue
Block a user