Fix silicons looking at their laws crashing the server (#38623)

This commit is contained in:
Pieter-Jan Briers
2025-06-27 15:03:16 +02:00
committed by GitHub
parent cf4a883f11
commit 5bc778d42e

View 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;