mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-09 23:39:43 +00:00
Block: name is no longer nullable
This commit is contained in:
parent
e063c567be
commit
0120585aee
@ -68,7 +68,7 @@ class Block extends Position implements BlockIds, Metadatable{
|
||||
/** @var BlockIdentifier */
|
||||
protected $idInfo;
|
||||
|
||||
/** @var string|null */
|
||||
/** @var string */
|
||||
protected $fallbackName;
|
||||
|
||||
|
||||
@ -79,7 +79,7 @@ class Block extends Position implements BlockIds, Metadatable{
|
||||
|
||||
/**
|
||||
* @param BlockIdentifier $idInfo
|
||||
* @param string|null $name English name of the block type (TODO: implement translations)
|
||||
* @param string $name English name of the block type (TODO: implement translations)
|
||||
*/
|
||||
public function __construct(BlockIdentifier $idInfo, string $name){
|
||||
if(($idInfo->getVariant() & $this->getStateBitmask()) !== 0){
|
||||
|
Loading…
x
Reference in New Issue
Block a user