Skip to content

Commit

Permalink
updates appearnce
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxEdwards20 committed Apr 19, 2024
1 parent e2b2578 commit 2affc6f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/Shared/Messages/NewEntity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -455,14 +455,6 @@ private int parseAppearance(byte[] data, int offset)
{
this.hasAppearance = BitConverter.ToBoolean(data, offset);
offset += sizeof(bool);
if (hasAppearance)
{
int textureSize = BitConverter.ToInt32(data, offset);
offset += sizeof(Int32);
this.texture = Encoding.UTF8.GetString(data, offset, textureSize);
offset += textureSize;
}

return offset;
}

Expand Down Expand Up @@ -567,11 +559,6 @@ private void serializePosition(List<byte> data)
private void serializeAppearance(List<byte> data)
{
data.AddRange(BitConverter.GetBytes(hasAppearance));
if (hasAppearance)
{
data.AddRange(BitConverter.GetBytes(texture.Length));
data.AddRange(Encoding.UTF8.GetBytes(texture));
}
}
}
}
Expand Down

0 comments on commit 2affc6f

Please sign in to comment.