mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Item: remove redundant meta constructor params
these ctor params should only be used for variants in the ItemFactory registration, but all of these items have no non-zero variants anyway.
This commit is contained in:
@ -28,8 +28,8 @@ use pocketmine\entity\EffectInstance;
|
||||
|
||||
class GoldenAppleEnchanted extends GoldenApple{
|
||||
|
||||
public function __construct(int $meta = 0){
|
||||
Food::__construct(self::ENCHANTED_GOLDEN_APPLE, $meta, "Enchanted Golden Apple"); //skip parent constructor
|
||||
public function __construct(){
|
||||
Food::__construct(self::ENCHANTED_GOLDEN_APPLE, 0, "Enchanted Golden Apple"); //skip parent constructor
|
||||
}
|
||||
|
||||
public function getAdditionalEffects() : array{
|
||||
|
Reference in New Issue
Block a user