From 4159f6c1861311f4e06e13f4594d51df0142ceca Mon Sep 17 00:00:00 2001 From: Stealownz Date: Mon, 5 Apr 2021 09:45:39 +0800 Subject: [PATCH] Update firework command to include extra parameter in NewProjectile --- TShockAPI/Commands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 6e8b1b95..cd2e6b2d 100644 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -5434,7 +5434,7 @@ namespace TShockAPI type = 170; } 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(); args.Player.SendSuccessMessage("Launched Firework on {0}.", ply.Name); }