]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix the component defaults
authorSaphire <lattice@saphi.re>
Sat, 16 Nov 2024 22:31:34 +0000 (04:31 +0600)
committerSaphire <lattice@saphi.re>
Sat, 16 Nov 2024 22:31:41 +0000 (04:31 +0600)
Content.Server/Singularity/Components/SingularityGeneratorComponent.cs

index 180b84995846d2f86264b174702fa0f369b3a04a..8b9b4e74466ff5bf3977c5c5230159c83a34e661 100644 (file)
@@ -53,7 +53,7 @@ public sealed partial class SingularityGeneratorComponent : Component
     /// Message to use when there's no containment field on cardinal directions
     /// </summary>
     [DataField]
-    public LocId ContainmentFailsafeMessage;
+    public LocId ContainmentFailsafeMessage = "comp-generator-failsafe";
 
     /// <summary>
     /// For how long the failsafe will cause the generator to stop working and not issue a failsafe warning
@@ -66,5 +66,5 @@ public sealed partial class SingularityGeneratorComponent : Component
     /// </summary>
     [DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
     [AutoPausedField]
-    public TimeSpan NextFailsafe;
+    public TimeSpan NextFailsafe = TimeSpan.Zero;
 }