Fixed GetData overidding handled value from OnChat.
Dont continue if Fake Chat message is detected.
This commit is contained in:
parent
1061cd913d
commit
1ac46f8824
1 changed files with 3 additions and 2 deletions
|
|
@ -202,7 +202,7 @@ namespace TShockAPI
|
|||
|
||||
private void GetData(GetDataEventArgs e)
|
||||
{
|
||||
e.Handled = HandleGetData(e);
|
||||
e.Handled = e.Handled || HandleGetData(e);
|
||||
}
|
||||
|
||||
private bool HandleGetData(GetDataEventArgs e)
|
||||
|
|
@ -518,7 +518,8 @@ namespace TShockAPI
|
|||
|
||||
if (msg.whoAmI != ply)
|
||||
{
|
||||
e.Handled = Tools.HandleGriefer(ply, "Faking Chat"); ;
|
||||
e.Handled = Tools.HandleGriefer(ply, "Faking Chat");
|
||||
return;
|
||||
}
|
||||
|
||||
int x = (int)Main.player[ply].position.X;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue