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>
This commit is contained in:
Samuka-C
2025-08-19 20:04:24 -03:00
committed by GitHub
parent 3f14ceec0f
commit a26a18243f

View File

@@ -294,15 +294,16 @@ public sealed class SiliconLawSystem : SharedSiliconLawSystem
protected override void OnUpdaterInsert(Entity<SiliconLawUpdaterComponent> ent, ref EntInsertedIntoContainerMessage args)
{
// TODO: Prediction dump this
if (!TryComp(args.Entity, out SiliconLawProviderComponent? provider))
if (!TryComp<SiliconLawProviderComponent>(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);
SetLaws(lawset.Laws, update, provider.LawUploadSound);
}
}
}