More changes, im going to bed
This commit is contained in:
@@ -111,7 +111,7 @@ Deno.test("a worldgen mod hooks the terrain in engine.common", async () => {
|
||||
`import { engine, hook } from "cubi/engine";
|
||||
// no ground anywhere, so it's all sea
|
||||
export function setup() {
|
||||
hook(engine.common.OverworldTerrain.prototype, "density", { replace: () => -1 });
|
||||
hook(engine.common.NoiseTerrain.prototype, "density", { replace: () => -1 });
|
||||
}`,
|
||||
],
|
||||
})
|
||||
@@ -136,7 +136,7 @@ Deno.test({
|
||||
"worldgen.ts",
|
||||
`import { engine, hook } from "cubi/engine";
|
||||
export function setup() {
|
||||
hook(engine.common.OverworldTerrain.prototype, "density", { replace: () => -1 });
|
||||
hook(engine.common.NoiseTerrain.prototype, "density", { replace: () => -1 });
|
||||
}`,
|
||||
],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user