Skip blocks that don't exist on schematics
This commit is contained in:
@@ -73,7 +73,7 @@ export async function start_game(
|
||||
for (const mod of mods) {
|
||||
for (const schematic of mod.data.schematics ?? []) {
|
||||
try {
|
||||
game.schematics.set(schematic.id!, prepare_schematic(game, schematic));
|
||||
game.schematics.set(schematic.id!, prepare_schematic(game, schematic.id!, schematic));
|
||||
} catch (e) {
|
||||
throw new ModLoadError(mod.listing.id, `schematic ${schematic.id}: ${(e as Error).message}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user