mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
ItemFactory: fix var type doc in get()
This commit is contained in:
parent
89458660cf
commit
137245ed7b
@ -410,7 +410,7 @@ class ItemFactory{
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
public static function get(int $id, int $meta = 0, int $count = 1, ?CompoundTag $tags = null) : Item{
|
||||
/** @var Item $item */
|
||||
/** @var Item|null $item */
|
||||
$item = null;
|
||||
if($meta !== -1){
|
||||
if(isset(self::$list[$offset = self::getListOffset($id, $meta)])){
|
||||
|
Loading…
x
Reference in New Issue
Block a user