Minor matchstick optimisation

This commit is contained in:
metalgearsloth
2021-12-15 13:32:39 +11:00
parent d24ce4b58d
commit 0162f668fb

View File

@@ -37,7 +37,7 @@ namespace Content.Server.Light.EntitySystems
base.Update(frameTime); base.Update(frameTime);
foreach (var match in _litMatches) 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; continue;
_atmosphereSystem.HotspotExpose(EntityManager.GetComponent<TransformComponent>(match.Owner).Coordinates, 400, 50, true); _atmosphereSystem.HotspotExpose(EntityManager.GetComponent<TransformComponent>(match.Owner).Coordinates, 400, 50, true);