UnknownBlock: fixed type data encoding

This commit is contained in:
Dylan K. Taylor 2022-08-16 17:42:18 +01:00
parent b65e0f64f6
commit 6e8f11d5e8
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -36,6 +36,8 @@ class UnknownBlock extends Transparent{
$this->stateData = $stateData;
}
public function getRequiredTypeDataBits() : int{ return Block::INTERNAL_STATE_DATA_BITS; }
protected function describeType(RuntimeDataReader|RuntimeDataWriter $w) : void{
//use type instead of state, so we don't lose any information like colour
//this might be an improperly registered plugin block