mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 07:39:42 +00:00
Separate item ID/meta to ItemIdentifier structure
This commit is contained in:
@@ -47,8 +47,8 @@ class Armor extends Durable{
|
||||
/** @var Color|null */
|
||||
protected $customColor = null;
|
||||
|
||||
public function __construct(int $id, int $variant, string $name, ArmorTypeInfo $info){
|
||||
parent::__construct($id, $variant, $name);
|
||||
public function __construct(ItemIdentifier $identifier, string $name, ArmorTypeInfo $info){
|
||||
parent::__construct($identifier, $name);
|
||||
$this->armorInfo = $info;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user