]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix silicons looking at their laws crashing the server (#38623)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Fri, 27 Jun 2025 13:03:16 +0000 (15:03 +0200)
committerGitHub <noreply@github.com>
Fri, 27 Jun 2025 13:03:16 +0000 (15:03 +0200)
Content.Server/Silicons/Laws/SiliconLawSystem.cs

index 8dfc8d51f8d637aa9e1a79163d543fabf220a23b..444732b2b3d497249a3803749586af7503ea6518 100644 (file)
@@ -270,7 +270,7 @@ public sealed class SiliconLawSystem : SharedSiliconLawSystem
         };
         foreach (var law in proto.Laws)
         {
-            laws.Laws.Add(_prototype.Index<SiliconLawPrototype>(law));
+            laws.Laws.Add(_prototype.Index<SiliconLawPrototype>(law).ShallowClone());
         }
         laws.ObeysTo = proto.ObeysTo;