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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user