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:
Lucas Nicodemus 2017-12-11 00:17:58 -07:00
parent 9b8aaceb12
commit 4b08d61673

View file

@ -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();