diff --git a/MLAPI/Data/NetId.cs b/MLAPI/Data/NetId.cs index 4521704..9e8e3ac 100644 --- a/MLAPI/Data/NetId.cs +++ b/MLAPI/Data/NetId.cs @@ -81,7 +81,7 @@ namespace MLAPI.Data /// The client identifier. public uint GetClientId() { - return (uint)HostId | (ushort)((uint)(byte)(ConnectionId & 0xFF) << 8) | (ushort)((uint)(byte)((ConnectionId >> 8) & 0xFF) << 16) | (ushort)((uint)Meta << 24); + return HostId | (uint)((ConnectionId & 0xFF) << 8) | (uint)(((ConnectionId >> 8) & 0xFF) << 16) | (uint)(Meta << 24); } // Rider generated vvv ///