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:
@ -36,8 +36,7 @@ use function abs;
|
||||
class Barrel extends Opaque{
|
||||
use AnyFacingTrait;
|
||||
|
||||
/** @var bool */
|
||||
protected $open = false;
|
||||
protected bool $open = false;
|
||||
|
||||
protected function writeStateToMeta() : int{
|
||||
return BlockDataSerializer::writeFacing($this->facing) | ($this->open ? BlockLegacyMetadata::BARREL_FLAG_OPEN : 0);
|
||||
|
Reference in New Issue
Block a user