Add note about crash check & change reaosn on OnKillMe

This commit is contained in:
Lucas Nicodemus 2017-12-11 19:07:53 -07:00
parent b808ad8e4c
commit 98aa01c620

View file

@ -204,11 +204,12 @@ namespace TShockAPI
return; return;
} }
// This was formerly marked as a crash check; does not actually crash on this specific packet.
if (playerDeathReason != null) if (playerDeathReason != null)
{ {
if (playerDeathReason.GetDeathText(TShock.Players[id].Name).ToString().Length > 500) if (playerDeathReason.GetDeathText(TShock.Players[id].Name).ToString().Length > 500)
{ {
TShock.Utils.Kick(TShock.Players[id], "Crash attempt", true); TShock.Utils.Kick(TShock.Players[id], "Death reason outside of normal bounds.", true);
args.Handled = true; args.Handled = true;
return; return;
} }