mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 15:36:08 +00:00
Migrate all but two remaining legacy enums to native PHP 8.1 enums
This commit is contained in:
@@ -31,12 +31,7 @@ use pocketmine\player\Player;
|
||||
|
||||
class SplashPotion extends ProjectileItem{
|
||||
|
||||
private PotionType $potionType;
|
||||
|
||||
public function __construct(ItemIdentifier $identifier, string $name){
|
||||
$this->potionType = PotionType::WATER();
|
||||
parent::__construct($identifier, $name);
|
||||
}
|
||||
private PotionType $potionType = PotionType::WATER;
|
||||
|
||||
protected function describeState(RuntimeDataDescriber $w) : void{
|
||||
$w->potionType($this->potionType);
|
||||
|
Reference in New Issue
Block a user