From d047e8d70ca420af69525c449cd1326d07d8a827 Mon Sep 17 00:00:00 2001 From: MT Date: Fri, 23 Jul 2021 18:09:37 -0400 Subject: [PATCH] change VarUInt to UInt --- MultiplayerExtensions/Beatmaps/PreviewBeatmapPacket.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MultiplayerExtensions/Beatmaps/PreviewBeatmapPacket.cs b/MultiplayerExtensions/Beatmaps/PreviewBeatmapPacket.cs index a1dd8bd..fb78169 100644 --- a/MultiplayerExtensions/Beatmaps/PreviewBeatmapPacket.cs +++ b/MultiplayerExtensions/Beatmaps/PreviewBeatmapPacket.cs @@ -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) @@ -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()