Improve on projectile draw exploit detection.
This commit is contained in:
parent
6370974f30
commit
9447ce37dc
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue