From 5bc778d42e2bd397d219837d5192d2510d4583ac Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Fri, 27 Jun 2025 15:03:16 +0200 Subject: [PATCH] Fix silicons looking at their laws crashing the server (#38623) --- Content.Server/Silicons/Laws/SiliconLawSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Silicons/Laws/SiliconLawSystem.cs b/Content.Server/Silicons/Laws/SiliconLawSystem.cs index 8dfc8d51f8..444732b2b3 100644 --- a/Content.Server/Silicons/Laws/SiliconLawSystem.cs +++ b/Content.Server/Silicons/Laws/SiliconLawSystem.cs @@ -270,7 +270,7 @@ public sealed class SiliconLawSystem : SharedSiliconLawSystem }; foreach (var law in proto.Laws) { - laws.Laws.Add(_prototype.Index(law)); + laws.Laws.Add(_prototype.Index(law).ShallowClone()); } laws.ObeysTo = proto.ObeysTo; -- 2.51.2