From b3810922f342504da997ad0f267e6ba20b664188 Mon Sep 17 00:00:00 2001 From: Vera Aguilera Puerto Date: Fri, 5 Feb 2021 22:44:55 +0100 Subject: [PATCH] Fix spawned computers not adding the needed container to the ConstructionComponent Fixes #3091 --- Content.Server/GameObjects/Components/ComputerComponent.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Content.Server/GameObjects/Components/ComputerComponent.cs b/Content.Server/GameObjects/Components/ComputerComponent.cs index f22a6fc094..9ab1995b1b 100644 --- a/Content.Server/GameObjects/Components/ComputerComponent.cs +++ b/Content.Server/GameObjects/Components/ComputerComponent.cs @@ -1,3 +1,4 @@ +using Content.Server.GameObjects.Components.Construction; using Content.Server.GameObjects.Components.Power.ApcNetComponents; using Content.Shared.GameObjects.Components; using JetBrains.Annotations; @@ -87,6 +88,9 @@ namespace Content.Server.GameObjects.Components if(!container.Insert(board)) Logger.Warning($"Couldn't insert board {board} to computer {Owner}!"); + + if (Owner.TryGetComponent(out ConstructionComponent construction)) + construction.AddContainer("board"); } public void MapInit()