mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Use typed properties in block namespace
This commit is contained in:
@ -36,10 +36,8 @@ use pocketmine\world\sound\DoorSound;
|
||||
class FenceGate extends Transparent{
|
||||
use HorizontalFacingTrait;
|
||||
|
||||
/** @var bool */
|
||||
protected $open = false;
|
||||
/** @var bool */
|
||||
protected $inWall = false;
|
||||
protected bool $open = false;
|
||||
protected bool $inWall = false;
|
||||
|
||||
protected function writeStateToMeta() : int{
|
||||
return BlockDataSerializer::writeLegacyHorizontalFacing($this->facing) |
|
||||
|
Reference in New Issue
Block a user