mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 12:04:46 +00:00
SplashPotion: Require potionId in constructor
This commit is contained in:
@@ -43,9 +43,7 @@ class SplashPotion extends ProjectileItem{
|
||||
}
|
||||
|
||||
protected function createEntity(Location $location, Player $thrower) : Throwable{
|
||||
$projectile = new SplashPotionEntity($location, $thrower);
|
||||
$projectile->setPotionId($this->potionId);
|
||||
return $projectile;
|
||||
return new SplashPotionEntity($location, $thrower, $this->potionId);
|
||||
}
|
||||
|
||||
public function getThrowForce() : float{
|
||||
|
Reference in New Issue
Block a user