Initial Commit of 1.2.4, all data handlers are currently off.

This commit is contained in:
Zack Piispanen 2014-05-09 21:20:21 -04:00
parent 8d32d16bff
commit 871ad1fd2a
11 changed files with 109 additions and 88 deletions

View file

@ -32,12 +32,12 @@ namespace TShockAPI.Net
public void PackFull(Stream stream)
{
long start = stream.Position;
stream.WriteInt32(1);
stream.WriteInt16(0);
stream.WriteInt8((byte) ID);
Pack(stream);
long end = stream.Position;
stream.Position = start;
stream.WriteInt32((int) (end - start) - 4);
stream.WriteInt16((short)end);
stream.Position = end;
}