Minor refactors
This commit is contained in:
parent
93a7b0aafe
commit
c7a6d044f4
5 changed files with 18 additions and 25 deletions
|
|
@ -30,6 +30,9 @@ namespace TShockAPI.Handlers.NetModules
|
|||
/// <param name="data"></param>
|
||||
public void Deserialize(MemoryStream data)
|
||||
{
|
||||
// For whatever reason Terraria writes '0' to the stream at the beginning of this packet.
|
||||
// If this value is not 0 then its been crafted by a non-vanilla client.
|
||||
// We don't actually know why the 0 is written, so we're just going to call this UnknownField for now
|
||||
UnknownField = data.ReadInt8();
|
||||
if (UnknownField == 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue