Made handle checks consistent. Also some of us don't have a lot of horizontal space.
This commit is contained in:
parent
b061a6c085
commit
80af1c52ca
1 changed files with 75 additions and 75 deletions
|
|
@ -448,8 +448,9 @@ namespace TShockAPI
|
|||
|
||||
private void OnChat(messageBuffer msg, int ply, string text, HandledEventArgs e)
|
||||
{
|
||||
if (!e.Handled)
|
||||
{
|
||||
if (e.Handled)
|
||||
return;
|
||||
|
||||
var tsplr = Players[msg.whoAmI];
|
||||
if (tsplr == null)
|
||||
{
|
||||
|
|
@ -500,7 +501,6 @@ namespace TShockAPI
|
|||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// When a server command is run.
|
||||
|
|
@ -560,8 +560,9 @@ namespace TShockAPI
|
|||
|
||||
private void GetData(GetDataEventArgs e)
|
||||
{
|
||||
if (!e.Handled)
|
||||
{
|
||||
if (e.Handled)
|
||||
return;
|
||||
|
||||
PacketTypes type = e.MsgID;
|
||||
var player = Players[e.Msg.whoAmI];
|
||||
if (player == null)
|
||||
|
|
@ -602,7 +603,6 @@ namespace TShockAPI
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void OnGreetPlayer(int who, HandledEventArgs e)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue