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
@@ -1064,7 +1064,7 @@ export class ModRuntime {
register: (id, schematic) => {
register.new_id("schematic", id, game().schematics.has(id));
try {
game().schematics.set(id, prepare_schematic(game(), schematic));
game().schematics.set(id, prepare_schematic(game(), id, schematic));
} catch (e) {
register.fail(`schematic ${id}: ${(e as Error).message}`);
}