mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Separate item ID/meta to ItemIdentifier structure
This commit is contained in:
@ -30,8 +30,8 @@ class Dye extends Item{
|
||||
/** @var DyeColor */
|
||||
private $color;
|
||||
|
||||
public function __construct(int $id, int $variant, string $name, DyeColor $color){
|
||||
parent::__construct($id, $variant, $name);
|
||||
public function __construct(ItemIdentifier $identifier, string $name, DyeColor $color){
|
||||
parent::__construct($identifier, $name);
|
||||
$this->color = $color;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user