Skip to content

Commit

Permalink
фиксы апстрима
Browse files Browse the repository at this point in the history
  • Loading branch information
VigersRay committed Jan 5, 2025
1 parent 692edc0 commit 6055ef2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Content.Client/Lobby/LobbyState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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!;
Expand Down Expand Up @@ -84,7 +83,7 @@ protected override void Startup()
// : lobbyNameCvar;

var width = _cfg.GetCVar(CCVars.ServerLobbyRightPanelWidth);
Lobby.RightSide.SetWidth = width;
Lobby.RightPanel.SetWidth = width;

UpdateLobbyUi();

Expand Down
2 changes: 1 addition & 1 deletion Content.Client/Lobby/UI/LobbyGui.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
</BoxContainer>
</BoxContainer>
<BoxContainer Orientation="Vertical" HorizontalExpand="True" HorizontalAlignment="Right">
<PanelContainer Name="RightPanel" MinWidth="500" StyleClasses="AngleRect" VerticalExpand="True"
<PanelContainer Name="RightPanel" Access="Public" MinWidth="500" StyleClasses="AngleRect" VerticalExpand="True"
VerticalAlignment="Stretch" HorizontalExpand="True">
<BoxContainer Orientation="Vertical" VerticalExpand="True" HorizontalExpand="True"
VerticalAlignment="Stretch" SeparationOverride="4">
Expand Down
4 changes: 1 addition & 3 deletions Content.Server/_Sunrise/SniperZoom/ZoomableGunSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6055ef2

Please sign in to comment.