Fix wall read bug in NetTile
This commit is contained in:
parent
ecb1a8a4e7
commit
2e0e5596b0
1 changed files with 3 additions and 3 deletions
|
|
@ -30,7 +30,7 @@ namespace TShockAPI.Net
|
||||||
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; }
|
||||||
public byte Wall { get; set; }
|
public ushort Wall { get; set; }
|
||||||
public byte Liquid { get; set; }
|
public byte Liquid { get; set; }
|
||||||
public byte LiquidType { get; set; }
|
public byte LiquidType { get; set; }
|
||||||
public bool Wire { get; set; }
|
public bool Wire { get; set; }
|
||||||
|
|
@ -175,7 +175,7 @@ namespace TShockAPI.Net
|
||||||
}
|
}
|
||||||
|
|
||||||
if (HasWall)
|
if (HasWall)
|
||||||
stream.WriteInt8(Wall);
|
stream.WriteInt16((short)Wall);;
|
||||||
|
|
||||||
if (HasLiquid)
|
if (HasLiquid)
|
||||||
{
|
{
|
||||||
|
|
@ -218,7 +218,7 @@ namespace TShockAPI.Net
|
||||||
|
|
||||||
if (flags[2])
|
if (flags[2])
|
||||||
{
|
{
|
||||||
Wall = stream.ReadInt8();
|
Wall = stream.ReadUInt16();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flags[3])
|
if (flags[3])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue