Skip to content

Commit

Permalink
Merge pull request #4 from jim972329667/patch-1
Browse files Browse the repository at this point in the history
Update Items.cs
  • Loading branch information
dschu012 authored Oct 26, 2021
2 parents c74bb90 + 5fb1c49 commit 74af0b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Model/Save/Items.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,12 @@ protected static string ReadPlayerName(BitReader reader)

protected static void WritePlayerName(BitWriter writer, string name)
{
byte[] bytes = Encoding.ASCII.GetBytes(name);
byte[] bytes = Encoding.ASCII.GetBytes(name.Replace("\0",""));
for (int i = 0; i < bytes.Length; i++)
{
writer.WriteByte(bytes[i]);
writer.WriteByte(bytes[i], 7);
}
writer.WriteByte((byte)'\0');
writer.WriteByte((byte)'\0', 7);
}

protected static void ReadCompact(BitReader reader, Item item, UInt32 version)
Expand Down

0 comments on commit 74af0b0

Please sign in to comment.