Update firework command to include extra parameter in NewProjectile
This commit is contained in:
parent
b4789607f6
commit
4159f6c186
1 changed files with 1 additions and 1 deletions
|
|
@ -5434,7 +5434,7 @@ namespace TShockAPI
|
||||||
type = 170;
|
type = 170;
|
||||||
}
|
}
|
||||||
var ply = players[0];
|
var ply = players[0];
|
||||||
int p = Projectile.NewProjectile(ply.TPlayer.position.X, ply.TPlayer.position.Y - 64f, 0f, -8f, type, 0, (float)0);
|
int p = Projectile.NewProjectile(Projectile.GetNoneSource(), ply.TPlayer.position.X, ply.TPlayer.position.Y - 64f, 0f, -8f, type, 0, (float)0);
|
||||||
Main.projectile[p].Kill();
|
Main.projectile[p].Kill();
|
||||||
args.Player.SendSuccessMessage("Launched Firework on {0}.", ply.Name);
|
args.Player.SendSuccessMessage("Launched Firework on {0}.", ply.Name);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue