From 8bc0a47b3b00aec27dd49300dc7dd84064a86dca Mon Sep 17 00:00:00 2001 From: Samuka-C <47865393+Samuka-C@users.noreply.github.com> Date: Tue, 19 Aug 2025 20:04:24 -0300 Subject: [PATCH] fix upload console (#39756) * fix upload console * make it smaller * even smaller * revert last commit * Update --------- Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com> --- Content.Server/Silicons/Laws/SiliconLawSystem.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Content.Server/Silicons/Laws/SiliconLawSystem.cs b/Content.Server/Silicons/Laws/SiliconLawSystem.cs index 759576ebe7..bf336582f6 100644 --- a/Content.Server/Silicons/Laws/SiliconLawSystem.cs +++ b/Content.Server/Silicons/Laws/SiliconLawSystem.cs @@ -296,16 +296,17 @@ public sealed class SiliconLawSystem : SharedSiliconLawSystem protected override void OnUpdaterInsert(Entity ent, ref EntInsertedIntoContainerMessage args) { // TODO: Prediction dump this - if (!TryComp(args.Entity, out SiliconLawProviderComponent? provider)) + if (!TryComp(args.Entity, out var provider)) return; - var lawset = GetLawset(provider.Laws).Laws; + var lawset = provider.Lawset ?? GetLawset(provider.Laws); + var query = EntityManager.CompRegistryQueryEnumerator(ent.Comp.Components); while (query.MoveNext(out var update)) { - SetLaws(lawset, update, provider.LawUploadSound); - RaiseLocalEvent(new AILawUpdatedEvent(update, provider.Laws)); // DeltaV + SetLaws(lawset.Laws, update, provider.LawUploadSound); + RaiseLocalEvent(new AILawUpdatedEvent(update, provider.Laws)); // DeltaV - Subvert AI objective } } }