mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Separate item ID/meta to ItemIdentifier structure
This commit is contained in:
@ -32,8 +32,8 @@ class Bed 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