mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Use typed properties in block namespace
This commit is contained in:
@ -33,8 +33,7 @@ use pocketmine\world\BlockTransaction;
|
||||
|
||||
class Lantern extends Transparent{
|
||||
|
||||
/** @var bool */
|
||||
protected $hanging = false;
|
||||
protected bool $hanging = false;
|
||||
|
||||
public function readStateFromData(int $id, int $stateMeta) : void{
|
||||
$this->hanging = ($stateMeta & BlockLegacyMetadata::LANTERN_FLAG_HANGING) !== 0;
|
||||
|
Reference in New Issue
Block a user