Fix anomaly vessels not generating points (#14137)

This commit is contained in:
Nemanja
2023-02-15 23:16:20 -05:00
committed by GitHub
parent 6b381f7304
commit 9ed3127ed5
4 changed files with 18 additions and 15 deletions

View File

@@ -88,10 +88,7 @@ public sealed partial class AnomalySystem
private void OnVesselGetPointsPerSecond(EntityUid uid, AnomalyVesselComponent component, ref ResearchServerGetPointsPerSecondEvent args)
{
if (!this.IsPowered(uid, EntityManager) || component.Anomaly is not {} anomaly)
{
args.Points = 0;
return;
}
args.Points += (int) (GetAnomalyPointValue(anomaly) * component.PointMultiplier);
}