mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
BlockStateData: introduce and use current()
This commit is contained in:
@ -281,6 +281,6 @@ final class BlockStateWriter{
|
||||
}
|
||||
|
||||
public function getBlockStateData() : BlockStateData{
|
||||
return new BlockStateData($this->id, $this->states, BlockStateData::CURRENT_VERSION);
|
||||
return BlockStateData::current($this->id, $this->states);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user