Print proper expected player ID when handling

spoofed LandGolfBallInCup.

(edited manually on GitHub, should be okay though)
This commit is contained in:
James Puleo 2021-06-14 01:54:26 -04:00
parent f1481dd0ec
commit 98c1587e44
No known key found for this signature in database
GPG key ID: 3E16C7EFA34FB15D
2 changed files with 2 additions and 1 deletions

View file

@ -89,7 +89,7 @@ namespace TShockAPI.Handlers
{
if (args.PlayerIndex != args.Player.Index)
{
TShock.Log.ConsoleDebug($"LandGolfBallInCupHandler: Packet rejected for ID spoofing. Expected {args.PlayerIndex} , received {args.PlayerIndex} from {args.Player.Name}.");
TShock.Log.ConsoleDebug($"LandGolfBallInCupHandler: Packet rejected for ID spoofing. Expected {args.Player.Index}, received {args.PlayerIndex} from {args.Player.Name}.");
args.Handled = true;
return;
}