Skip to content

Commit

Permalink
change VarUInt to UInt
Browse files Browse the repository at this point in the history
  • Loading branch information
Goobwabber committed Jul 23, 2021
1 parent 30f4881 commit d047e8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MultiplayerExtensions/Beatmaps/PreviewBeatmapPacket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void Serialize(NetDataWriter writer)
writer.Put(this.songDuration);

writer.Put(this.characteristic);
writer.PutVarUInt((uint)this.difficulty);
writer.Put((uint)this.difficulty);
}

public void Deserialize(NetDataReader reader)
Expand All @@ -63,7 +63,7 @@ public void Deserialize(NetDataReader reader)
this.songDuration = reader.GetFloat();

this.characteristic = reader.GetString();
this.difficulty = (BeatmapDifficulty)reader.GetVarUInt();
this.difficulty = (BeatmapDifficulty)reader.GetUInt();
}

public void Release()
Expand Down

0 comments on commit d047e8d

Please sign in to comment.