mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 16:59:44 +00:00
Block: return [] instead of null in getMetadata() (return type is non-nullable)
This commit is contained in:
parent
4b65e1cbe1
commit
9be95bf263
@ -763,7 +763,7 @@ class Block extends Position implements BlockIds, Metadatable{
|
|||||||
return $this->level->getBlockMetadata()->getMetadata($this, $metadataKey);
|
return $this->level->getBlockMetadata()->getMetadata($this, $metadataKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hasMetadata(string $metadataKey) : bool{
|
public function hasMetadata(string $metadataKey) : bool{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user