diff --git a/Content.Client/Lobby/LobbyState.cs b/Content.Client/Lobby/LobbyState.cs index deddde81b19..d2f6b30470e 100644 --- a/Content.Client/Lobby/LobbyState.cs +++ b/Content.Client/Lobby/LobbyState.cs @@ -36,7 +36,6 @@ namespace Content.Client.Lobby public sealed class LobbyState : Robust.Client.State.State { [Dependency] private readonly IBaseClient _baseClient = default!; - [Dependency] private readonly IConfigurationManager _cfg = default!; [Dependency] private readonly IClientConsoleHost _consoleHost = default!; [Dependency] private readonly IEntityManager _entityManager = default!; [Dependency] private readonly IResourceCache _resourceCache = default!; @@ -84,7 +83,7 @@ protected override void Startup() // : lobbyNameCvar; var width = _cfg.GetCVar(CCVars.ServerLobbyRightPanelWidth); - Lobby.RightSide.SetWidth = width; + Lobby.RightPanel.SetWidth = width; UpdateLobbyUi(); diff --git a/Content.Client/Lobby/UI/LobbyGui.xaml b/Content.Client/Lobby/UI/LobbyGui.xaml index d5af8f9f3d5..7207f563aa3 100644 --- a/Content.Client/Lobby/UI/LobbyGui.xaml +++ b/Content.Client/Lobby/UI/LobbyGui.xaml @@ -146,7 +146,7 @@ - diff --git a/Content.Server/_Sunrise/SniperZoom/ZoomableGunSystem.cs b/Content.Server/_Sunrise/SniperZoom/ZoomableGunSystem.cs index cdc4fdc3c1a..292984e549e 100644 --- a/Content.Server/_Sunrise/SniperZoom/ZoomableGunSystem.cs +++ b/Content.Server/_Sunrise/SniperZoom/ZoomableGunSystem.cs @@ -34,9 +34,7 @@ private void OnItemWieldedEvent(EntityUid uid, ZoomableGunComponent comp, ItemWi private void OnItemUnwieldedEvent(EntityUid uid, ZoomableGunComponent comp, ItemUnwieldedEvent ev) { comp.Wielded = false; - if (ev.User == null) - return; - DisableZoom(ev.User.Value, comp); + DisableZoom(ev.User, comp); } private void EnableZoom(EntityUid uid, ZoomableGunComponent comp)