From 9447ce37dcff4e4b40ae5b7326df5ac02aa4a336 Mon Sep 17 00:00:00 2001 From: Deathmax Date: Thu, 11 Aug 2011 17:13:40 +0800 Subject: [PATCH] Improve on projectile draw exploit detection. --- TShockAPI/GetDataHandlers.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index e6fc4612..eb4e1436 100755 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -452,7 +452,7 @@ namespace TShockAPI return true; } - if ((vely == 0f || velx == 0f) && type == 23) + if (type == 23 && float.IsNaN((float)Math.Sqrt((double)(velx * velx + vely * vely)))) { Tools.HandleGriefer(args.Player, TShock.Config.ProjectileAbuseReason); return true;