]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add missing MagnetState attribute (#14715)
authorLeon Friedrich <60421075+ElectroJr@users.noreply.github.com>
Fri, 17 Mar 2023 01:50:10 +0000 (14:50 +1300)
committerGitHub <noreply@github.com>
Fri, 17 Mar 2023 01:50:10 +0000 (12:50 +1100)
Content.Server/Salvage/SalvageMagnetComponent.cs

index a6b9e75cf77ff33728054326cedbbef80b6dcce5..7020631c6a74370e65dd86ad429cec43cd17700b 100644 (file)
@@ -1,7 +1,7 @@
 using Content.Shared.Radio;
+using Content.Shared.Salvage;
 using Robust.Shared.GameStates;
 using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
-using Content.Shared.Salvage;
 
 namespace Content.Server.Salvage
 {
@@ -94,7 +94,8 @@ namespace Content.Server.Salvage
         public int PreviousCharge = 5;
 
     }
-    [CopyByRef]
+
+    [CopyByRef, DataRecord]
     public record struct MagnetState(MagnetStateType StateType, TimeSpan Until)
     {
         public static readonly MagnetState Inactive = new (MagnetStateType.Inactive, TimeSpan.Zero);