From 415ac8fa46c8e2acf9341724e2d472074e4545f0 Mon Sep 17 00:00:00 2001 From: moneyl <8206401+Moneyl@users.noreply.github.com> Date: Tue, 17 Sep 2019 20:56:37 -0400 Subject: [PATCH] Replace non-existent prototype in ToolLockerFillComponent (#341) Previously this component would sometimes try to use a non-existent prototype, `HelmetEngineering`. This would result in a server crash upon loading any map that uses the `Tool Locker (Filled)` component. This replaces that non existent prototype with `HatHardhatRed`, which does exist, and is something you might expect to find in a tool locker. --- .../Components/Items/Storage/Fill/ToolLockerFillComponent.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Server/GameObjects/Components/Items/Storage/Fill/ToolLockerFillComponent.cs b/Content.Server/GameObjects/Components/Items/Storage/Fill/ToolLockerFillComponent.cs index 5fa5e0fa9c..628b4a9f8d 100644 --- a/Content.Server/GameObjects/Components/Items/Storage/Fill/ToolLockerFillComponent.cs +++ b/Content.Server/GameObjects/Components/Items/Storage/Fill/ToolLockerFillComponent.cs @@ -1,4 +1,4 @@ -using System; +using System; using Robust.Server.Interfaces.GameObjects; using Robust.Shared.GameObjects; using Robust.Shared.Interfaces.GameObjects; @@ -80,7 +80,7 @@ namespace Content.Server.GameObjects.Components.Items.Storage.Fill if (random.Prob(0.4f)) { - Spawn("HelmetEngineering"); + Spawn("HatHardhatRed"); } for (var i = 0; i < 3; i++)