From ef72cc4451e4cc6b004be34799c66f041992524b Mon Sep 17 00:00:00 2001 From: MarioE Date: Sun, 16 Feb 2014 09:08:14 -0500 Subject: [PATCH] Fix NetTile not having ushort Type --- TShockAPI/Net/NetTile.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TShockAPI/Net/NetTile.cs b/TShockAPI/Net/NetTile.cs index e30ca13e..b526acba 100644 --- a/TShockAPI/Net/NetTile.cs +++ b/TShockAPI/Net/NetTile.cs @@ -26,7 +26,7 @@ namespace TShockAPI.Net public class NetTile : IPackable { public bool Active { get; set; } - public byte Type { get; set; } + public ushort Type { get; set; } public short FrameX { get; set; } public short FrameY { get; set; } public bool Lighted { get; set; } @@ -169,7 +169,7 @@ namespace TShockAPI.Net if (Active) { - stream.WriteInt8(Type); + stream.WriteInt16((short)Type); if (FrameImportant) { stream.WriteInt16(FrameX); @@ -211,7 +211,7 @@ namespace TShockAPI.Net Active = flags.HasFlag(TileFlags.Active); if (Active) { - Type = stream.ReadInt8(); + Type = stream.ReadUInt16(); if (FrameImportant) { FrameX = stream.ReadInt16();