From 9c0a67052598ec1818ef52964d4d4d4720d8449c Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Sun, 12 Jan 2020 02:02:58 +0100 Subject: [PATCH] Fix flashlights not updating status when battery inserted. --- .../Components/Interactable/HandheldLightComponent.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Content.Server/GameObjects/Components/Interactable/HandheldLightComponent.cs b/Content.Server/GameObjects/Components/Interactable/HandheldLightComponent.cs index 13011da043..05221b47f2 100644 --- a/Content.Server/GameObjects/Components/Interactable/HandheldLightComponent.cs +++ b/Content.Server/GameObjects/Components/Interactable/HandheldLightComponent.cs @@ -1,4 +1,4 @@ -using Content.Server.GameObjects.Components.Power; +using Content.Server.GameObjects.Components.Power; using Content.Server.GameObjects.Components.Sound; using Content.Server.GameObjects.EntitySystems; using Content.Server.Interfaces.GameObjects; @@ -70,6 +70,8 @@ namespace Content.Server.GameObjects.Components.Interactable soundComponent.Play("/Audio/items/weapons/pistol_magin.ogg"); } + Dirty(); + return true; }