mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Use typed properties in block namespace
This commit is contained in:
@ -32,8 +32,7 @@ use pocketmine\world\BlockTransaction;
|
||||
|
||||
class Torch extends Flowable{
|
||||
|
||||
/** @var int */
|
||||
protected $facing = Facing::UP;
|
||||
protected int $facing = Facing::UP;
|
||||
|
||||
protected function writeStateToMeta() : int{
|
||||
return $this->facing === Facing::UP ? 5 : 6 - BlockDataSerializer::writeHorizontalFacing($this->facing);
|
||||
|
Reference in New Issue
Block a user