Change null check to return true in HandlePlayerUpdate
After confirming with @QuiCM on this, we couldn't figure out why this was set to false in the first place. As a result, we changed it to true to conform with usual logic (bad stuff? reject it.).
This commit is contained in:
parent
9b8aaceb12
commit
4b08d61673
1 changed files with 1 additions and 4 deletions
|
|
@ -2076,10 +2076,7 @@ namespace TShockAPI
|
|||
{
|
||||
if (args.Player == null || args.TPlayer == null || args.Data == null)
|
||||
{
|
||||
// Is this really the best option?
|
||||
// If we're getting a packet that doesn't have a player or a TPlayer or data...
|
||||
// Should we really let it through?
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
byte plr = args.Data.ReadInt8();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue