Minor matchstick optimisation
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user