Fix NetTile not having ushort Type
This commit is contained in:
parent
f6078a9594
commit
ef72cc4451
1 changed files with 3 additions and 3 deletions
|
|
@ -26,7 +26,7 @@ namespace TShockAPI.Net
|
||||||
public class NetTile : IPackable
|
public class NetTile : IPackable
|
||||||
{
|
{
|
||||||
public bool Active { get; set; }
|
public bool Active { get; set; }
|
||||||
public byte Type { get; set; }
|
public ushort Type { get; set; }
|
||||||
public short FrameX { get; set; }
|
public short FrameX { get; set; }
|
||||||
public short FrameY { get; set; }
|
public short FrameY { get; set; }
|
||||||
public bool Lighted { get; set; }
|
public bool Lighted { get; set; }
|
||||||
|
|
@ -169,7 +169,7 @@ namespace TShockAPI.Net
|
||||||
|
|
||||||
if (Active)
|
if (Active)
|
||||||
{
|
{
|
||||||
stream.WriteInt8(Type);
|
stream.WriteInt16((short)Type);
|
||||||
if (FrameImportant)
|
if (FrameImportant)
|
||||||
{
|
{
|
||||||
stream.WriteInt16(FrameX);
|
stream.WriteInt16(FrameX);
|
||||||
|
|
@ -211,7 +211,7 @@ namespace TShockAPI.Net
|
||||||
Active = flags.HasFlag(TileFlags.Active);
|
Active = flags.HasFlag(TileFlags.Active);
|
||||||
if (Active)
|
if (Active)
|
||||||
{
|
{
|
||||||
Type = stream.ReadInt8();
|
Type = stream.ReadUInt16();
|
||||||
if (FrameImportant)
|
if (FrameImportant)
|
||||||
{
|
{
|
||||||
FrameX = stream.ReadInt16();
|
FrameX = stream.ReadInt16();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue