Skip blocks that don't exist on schematics

This commit is contained in:
2026-11-21 09:10:43 -03:00
parent c0c182490e
commit f36176a872
6 changed files with 40 additions and 9 deletions
+1 -1
View File
@@ -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}`);
}