fixes enpendablelight to actually be expendable

This commit is contained in:
Paul
2021-07-26 18:17:42 +02:00
parent 1033d8bbe5
commit 8357fcd7c2

View File

@@ -56,7 +56,7 @@ namespace Content.Server.Light.Components
/// </summary>
private bool TryActivate()
{
if (!Activated)
if (!Activated && CurrentState == ExpendableLightState.BrandNew)
{
if (Owner.TryGetComponent<ItemComponent>(out var item))
{