mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 00:25:04 +00:00
Register missing potion types
This commit is contained in:
@ -79,6 +79,11 @@ final class PotionTypeIdMap{
|
||||
$this->register(PotionTypeIds::WEAKNESS, PotionType::WEAKNESS());
|
||||
$this->register(PotionTypeIds::LONG_WEAKNESS, PotionType::LONG_WEAKNESS());
|
||||
$this->register(PotionTypeIds::WITHER, PotionType::WITHER());
|
||||
$this->register(PotionTypeIds::TURTLE_MASTER, PotionType::TURTLE_MASTER());
|
||||
$this->register(PotionTypeIds::LONG_TURTLE_MASTER, PotionType::LONG_TURTLE_MASTER());
|
||||
$this->register(PotionTypeIds::STRONG_TURTLE_MASTER, PotionType::STRONG_TURTLE_MASTER());
|
||||
$this->register(PotionTypeIds::SLOW_FALLING, PotionType::SLOW_FALLING());
|
||||
$this->register(PotionTypeIds::LONG_SLOW_FALLING, PotionType::LONG_SLOW_FALLING());
|
||||
}
|
||||
|
||||
private function register(int $id, PotionType $type) : void{
|
||||
|
@ -61,4 +61,9 @@ final class PotionTypeIds{
|
||||
public const WEAKNESS = 34;
|
||||
public const LONG_WEAKNESS = 35;
|
||||
public const WITHER = 36;
|
||||
public const TURTLE_MASTER = 37;
|
||||
public const LONG_TURTLE_MASTER = 38;
|
||||
public const STRONG_TURTLE_MASTER = 39;
|
||||
public const SLOW_FALLING = 40;
|
||||
public const LONG_SLOW_FALLING = 41;
|
||||
}
|
||||
|
Reference in New Issue
Block a user