From 6055ef2623d5a0c512c03518661229850953dd53 Mon Sep 17 00:00:00 2001 From: Vigers Ray Date: Mon, 6 Jan 2025 00:18:08 +0300 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=D1=8B=20=D0=B0=D0=BF?= =?UTF-8?q?=D1=81=D1=82=D1=80=D0=B8=D0=BC=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Content.Client/Lobby/LobbyState.cs | 3 +-- Content.Client/Lobby/UI/LobbyGui.xaml | 2 +- Content.Server/_Sunrise/SniperZoom/ZoomableGunSystem.cs | 4 +--- 3 files changed, 3 insertions(+), 6 deletions(-) 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)