mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 01:51:51 +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
|
* @throws \InvalidArgumentException
|
||||||
*/
|
*/
|
||||||
public static function get(int $id, int $meta = 0, int $count = 1, ?CompoundTag $tags = null) : Item{
|
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;
|
$item = null;
|
||||||
if($meta !== -1){
|
if($meta !== -1){
|
||||||
if(isset(self::$list[$offset = self::getListOffset($id, $meta)])){
|
if(isset(self::$list[$offset = self::getListOffset($id, $meta)])){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user