mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Added Inventory interfaces and types, updated long array() to []
This commit is contained in:
@ -359,7 +359,7 @@ class Item{
|
||||
|
||||
|
||||
/** @var Item[] */
|
||||
public static $list = array();
|
||||
public static $list = [];
|
||||
protected $block;
|
||||
protected $id;
|
||||
protected $meta;
|
||||
@ -447,7 +447,7 @@ class Item{
|
||||
|
||||
public static function fromString($str, $multiple = false){
|
||||
if($multiple === true){
|
||||
$blocks = array();
|
||||
$blocks = [];
|
||||
foreach(explode(",", $str) as $b){
|
||||
$blocks[] = self::fromString($b, false);
|
||||
}
|
||||
|
Reference in New Issue
Block a user