diff --git a/src/console/commands/RenderCommand.ts b/src/console/commands/RenderCommand.ts index b9e18ab5..69ea309b 100644 --- a/src/console/commands/RenderCommand.ts +++ b/src/console/commands/RenderCommand.ts @@ -6,6 +6,7 @@ import Path from "path" import { Net } from "../../lang/graph" import { netRun } from "../../lang/graph/netRun" import { Mod } from "../../lang/mod" +import { modBuildNet } from "../../lang/mod/modBuildNet" import { Parser } from "../../lang/syntax" import { NetRenderer } from "../../renderers/NetRenderer" @@ -76,7 +77,7 @@ export class RenderCommand extends Command { } async function renderNet(mod: Mod, file: string, name: string): Promise { - const net = mod.buildNet(name) + const net = modBuildNet(mod, name) renderFile(net, `${file}.${name}.initial.txt`) netRun(net) renderFile(net, `${file}.${name}.finial.txt`)