Register missing potion types

This commit is contained in:
Dylan K. Taylor
2021-06-19 21:53:08 +01:00
parent 5387456e44
commit 5d6146a01f
4 changed files with 31 additions and 1 deletions

View File

@ -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{

View File

@ -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;
}