mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 00:59:51 +00:00
UnknownBlock: fixed type data encoding
This commit is contained in:
parent
b65e0f64f6
commit
6e8f11d5e8
@ -36,6 +36,8 @@ class UnknownBlock extends Transparent{
|
|||||||
$this->stateData = $stateData;
|
$this->stateData = $stateData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getRequiredTypeDataBits() : int{ return Block::INTERNAL_STATE_DATA_BITS; }
|
||||||
|
|
||||||
protected function describeType(RuntimeDataReader|RuntimeDataWriter $w) : void{
|
protected function describeType(RuntimeDataReader|RuntimeDataWriter $w) : void{
|
||||||
//use type instead of state, so we don't lose any information like colour
|
//use type instead of state, so we don't lose any information like colour
|
||||||
//this might be an improperly registered plugin block
|
//this might be an improperly registered plugin block
|
||||||
|
Loading…
x
Reference in New Issue
Block a user