mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
Separate item ID/meta to ItemIdentifier structure
This commit is contained in:
@@ -256,8 +256,8 @@ class Potion extends Item implements ConsumableItem{
|
||||
/** @var int */
|
||||
private $potionId;
|
||||
|
||||
public function __construct(int $id, int $variant, string $name, int $potionId){
|
||||
parent::__construct($id, $variant, $name);
|
||||
public function __construct(ItemIdentifier $identifier, string $name, int $potionId){
|
||||
parent::__construct($identifier, $name);
|
||||
$this->potionId = $potionId;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user