item: remove some unnecessary CompoundTag usages

This commit is contained in:
Dylan K. Taylor
2020-06-19 22:59:19 +01:00
parent 4e8e10ca45
commit d62d0762ff
5 changed files with 5 additions and 10 deletions

View File

@@ -26,7 +26,6 @@ namespace pocketmine\item;
use pocketmine\entity\Location;
use pocketmine\entity\projectile\SplashPotion as SplashPotionEntity;
use pocketmine\entity\projectile\Throwable;
use pocketmine\nbt\tag\CompoundTag;
use pocketmine\player\Player;
class SplashPotion extends ProjectileItem{
@@ -36,7 +35,7 @@ class SplashPotion extends ProjectileItem{
}
protected function createEntity(Location $location, Player $thrower) : Throwable{
$projectile = new SplashPotionEntity($location, $thrower, new CompoundTag());
$projectile = new SplashPotionEntity($location, $thrower);
$projectile->setPotionId($this->meta);
return $projectile;
}