From 0162f668fb135922ad43c719e6f49aaf8a37e826 Mon Sep 17 00:00:00 2001 From: metalgearsloth Date: Wed, 15 Dec 2021 13:32:39 +1100 Subject: [PATCH] Minor matchstick optimisation --- Content.Server/Light/EntitySystems/MatchstickSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Light/EntitySystems/MatchstickSystem.cs b/Content.Server/Light/EntitySystems/MatchstickSystem.cs index e8b898579c..118a7be4cc 100644 --- a/Content.Server/Light/EntitySystems/MatchstickSystem.cs +++ b/Content.Server/Light/EntitySystems/MatchstickSystem.cs @@ -37,7 +37,7 @@ namespace Content.Server.Light.EntitySystems base.Update(frameTime); foreach (var match in _litMatches) { - if (match.CurrentState != SmokableState.Lit || match.Paused || match.Deleted) + if (match.CurrentState != SmokableState.Lit || Paused(match.Owner) || match.Deleted) continue; _atmosphereSystem.HotspotExpose(EntityManager.GetComponent(match.Owner).Coordinates, 400, 50, true);