Skip blocks that don't exist on schematics
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user