mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Use typed properties in block namespace
This commit is contained in:
@ -38,12 +38,9 @@ class Lever extends Flowable{
|
||||
protected const SIDE = 1;
|
||||
protected const TOP = 2;
|
||||
|
||||
/** @var int */
|
||||
protected $leverPos = self::BOTTOM;
|
||||
/** @var int */
|
||||
protected $facing = Facing::NORTH;
|
||||
/** @var bool */
|
||||
protected $powered = false;
|
||||
protected int $leverPos = self::BOTTOM;
|
||||
protected int $facing = Facing::NORTH;
|
||||
protected bool $powered = false;
|
||||
|
||||
protected function writeStateToMeta() : int{
|
||||
if($this->leverPos === self::BOTTOM){
|
||||
|
Reference in New Issue
Block a user