Remove IClientSingularityInstance, move visual effects to SingularityDistortionComponent (#4194)
* Remove IClientSingularityInstance * In and out 5 minute refactor * Component states for singularity distortion * Fix distortion states * Address reviews
This commit is contained in:
@@ -109,7 +109,7 @@ namespace Content.Server.Radiation
|
||||
return;
|
||||
|
||||
if(_duration <= 0f)
|
||||
Owner.Delete();
|
||||
Owner.QueueDelete();
|
||||
|
||||
_duration -= frameTime;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using System.Linq;
|
||||
using Content.Shared.Radiation;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Shared.GameObjects;
|
||||
@@ -53,7 +54,7 @@ namespace Content.Server.Radiation
|
||||
{
|
||||
if (entity.Deleted) continue;
|
||||
|
||||
foreach (var radiation in entity.GetAllComponents<IRadiationAct>())
|
||||
foreach (var radiation in entity.GetAllComponents<IRadiationAct>().ToArray())
|
||||
{
|
||||
radiation.RadiationAct(frameTime, comp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user