Fixed visualizer init (#3667)

This commit is contained in:
Alex Evgrashin
2021-03-15 00:59:04 +03:00
committed by GitHub
parent 70e2648fa0
commit 1c32d469aa

View File

@@ -268,8 +268,10 @@ namespace Content.Server.GameObjects.Components.Power.ApcNetComponents.PowerRece
var entity = Owner.EntityManager.SpawnEntity(prototype, Owner.Transform.Coordinates);
_lightBulbContainer.Insert(entity);
UpdateLight();
}
// need this to update visualizers
UpdateLight();
}
public void TriggerSignal(bool signal)