Enforce CultCache wire interop

This commit is contained in:
Meta Vens 2026-05-16 10:35:38 +01:00
commit d7aa3349f3
3 changed files with 281 additions and 5 deletions

View file

@ -643,7 +643,7 @@ export class CultCache {
#resolveDefinitionForEnvelope(entry: CultCacheEnvelope): RegisteredDefinition | undefined {
if (entry.schemaId) {
return this.#schemaIdDefinitions.get(entry.schemaId);
return this.#schemaIdDefinitions.get(entry.schemaId) ?? this.#definitions.get(entry.type);
}
return this.#definitions.get(entry.type);