Fix silicons looking at their laws crashing the server (#38623)
This commit is contained in:
committed by
GitHub
parent
cf4a883f11
commit
5bc778d42e
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user