From 82a2663d1f4f9dbf16de0794084da8b4e1c786b4 Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto Date: Sun, 20 Jun 2021 22:45:00 +0200 Subject: [PATCH] Fix crafting menu icon not appearing Fixes #4210 --- Content.Client/Construction/ConstructionSystem.cs | 2 +- Content.Client/Construction/UI/ConstructionMenuPresenter.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Client/Construction/ConstructionSystem.cs b/Content.Client/Construction/ConstructionSystem.cs index b92c75492b..7ffc1fbf81 100644 --- a/Content.Client/Construction/ConstructionSystem.cs +++ b/Content.Client/Construction/ConstructionSystem.cs @@ -29,7 +29,7 @@ namespace Content.Client.Construction private int _nextId; - private bool CraftingEnabled { get; set; } + public bool CraftingEnabled { get; private set; } /// public override void Initialize() diff --git a/Content.Client/Construction/UI/ConstructionMenuPresenter.cs b/Content.Client/Construction/UI/ConstructionMenuPresenter.cs index 344fa4755a..53a174f9e7 100644 --- a/Content.Client/Construction/UI/ConstructionMenuPresenter.cs +++ b/Content.Client/Construction/UI/ConstructionMenuPresenter.cs @@ -476,6 +476,7 @@ namespace Content.Client.Construction.UI _constructionSystem = system; system.ToggleCraftingWindow += SystemOnToggleMenu; system.CraftingAvailabilityChanged += SystemCraftingAvailabilityChanged; + CraftingAvailable = system.CraftingEnabled; } private void UnbindFromSystem()