1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

fix persistent id parsing for low bits with leading 0s

This commit is contained in:
RaidMax
2024-08-02 13:54:27 -05:00
parent 27a9a2eebf
commit 83f80b4fd2

View File

@ -878,7 +878,7 @@ namespace IW4MAdmin.Application
if (parts.Length == 2 && int.TryParse(parts[0], out var high) &&
int.TryParse(parts[1], out var low))
{
var guid = long.Parse(high.ToString("X") + low.ToString("X"), NumberStyles.HexNumber);
var guid = long.Parse(high.ToString("X8") + low.ToString("X8"), NumberStyles.HexNumber);
var penalties = await PenaltySvc
.GetActivePenaltiesByIdentifier(null, guid, receiveEvent.Client.GameName);