Every recipe type registered from shared scripts
This commit is contained in:
+1
-1
@@ -605,7 +605,7 @@ const engine_recipes = new Map<string, z.ZodType>([
|
||||
]);
|
||||
|
||||
// a mod's own types, like "bworld:cooking" for its cooking pot, are only stored by the engine. the mod parses them,
|
||||
// with ctx.recipes.register_type, or reads them with ctx.recipes.list and checks them
|
||||
// with ctx.recipes.register_type
|
||||
const recipe_schema = by_kind(
|
||||
"type",
|
||||
(type) => engine_recipes.get(type) ?? (ID_PATTERN.test(type) ? json_object : undefined),
|
||||
|
||||
Reference in New Issue
Block a user