Overlay stack sorting fix (#36103)

* round float before sorting

* weh
This commit is contained in:
Errant
2025-03-26 21:40:13 +01:00
committed by GitHub
parent 5bedf1761a
commit e4a5043d4e

View File

@@ -95,7 +95,7 @@ internal sealed class AdminNameOverlay : Overlay
continue;
// Get on-screen coordinates of player
var screenCoordinates = _eyeManager.WorldToScreen(aabb.Center);
var screenCoordinates = _eyeManager.WorldToScreen(aabb.Center).Rounded();
sortable.Add((info, aabb, entity.Value, screenCoordinates));
}