diff --git a/QSB/RespawnSync/RespawnHUDMarker.cs b/QSB/RespawnSync/RespawnHUDMarker.cs index d38e31ce..72eaa5a2 100644 --- a/QSB/RespawnSync/RespawnHUDMarker.cs +++ b/QSB/RespawnSync/RespawnHUDMarker.cs @@ -13,7 +13,7 @@ public class RespawnHUDMarker : HUDDistanceMarker { _markerRadius = 0.2f; _markerTarget = transform; - _markerLabel = QSBLocalization.Current.RespawnPlayer.LocalizedToUpper(); + _markerLabel = QSBLocalization.Current.RespawnPlayer.ToUpper(UIHelper.GetCurrentCultureInfo()); _isReady = true; base.InitCanvasMarker(); diff --git a/QSB/Utility/Extensions.cs b/QSB/Utility/Extensions.cs index c48f853e..943d172b 100644 --- a/QSB/Utility/Extensions.cs +++ b/QSB/Utility/Extensions.cs @@ -161,13 +161,13 @@ public static class Extensions public static void RaiseEvent(this T instance, string eventName, params object[] args) { const BindingFlags flags = BindingFlags.Instance - | BindingFlags.Static - | BindingFlags.Public - | BindingFlags.NonPublic - | BindingFlags.DeclaredOnly; + | BindingFlags.Static + | BindingFlags.Public + | BindingFlags.NonPublic + | BindingFlags.DeclaredOnly; if (typeof(T) - .GetField(eventName, flags)? - .GetValue(instance) is not MulticastDelegate multiDelegate) + .GetField(eventName, flags)? + .GetValue(instance) is not MulticastDelegate multiDelegate) { return; } @@ -214,11 +214,5 @@ public static class Extensions } } - public static string LocalizedToUpper(this string orig) - { - var culture = UIHelper.GetCurrentCultureInfo(); - return culture.TextInfo.ToUpper(orig); - } - #endregion } \ No newline at end of file