Change imports

This commit is contained in:
2026-11-04 21:51:26 -03:00
parent 98fa45ebd1
commit ba4b2a8798
270 changed files with 994 additions and 994 deletions
+4 -4
View File
@@ -4,12 +4,12 @@
// features are code or data, and use each other: data features with types and modifiers scripts register, scripts
// placing data features. they run by step, then mod, data before code. see docs/modding/worldgen/index.md
import { assert, assertEquals, assertRejects } from "@std/assert";
import { CHUNK_AREA, CHUNK_HEIGHT, CHUNK_SIZE } from "$/common/constants.ts";
import { generate_raw_chunk } from "$/common/generation.ts";
import { CHUNK_AREA, CHUNK_HEIGHT, CHUNK_SIZE } from "@/common/constants.ts";
import { generate_raw_chunk } from "@/common/generation.ts";
import { copy_dir, test_game } from "./helpers.ts";
const SCRIPT = `
import type { WorldgenContext } from "bworld/worldgen";
import type { WorldgenContext } from "cubi/worldgen";
export function setup(gen: WorldgenContext) {
// a type for data features: a pillar of a block
@@ -143,7 +143,7 @@ Deno.test("a data feature whose type no script registers stops the server", asyn
Deno.test("a feature can't be both code and data", async () => {
const clash = with_mod(
{ "worldgen/features/glass_pillar.json": GLASS_PILLAR },
`import type { WorldgenContext } from "bworld/worldgen";
`import type { WorldgenContext } from "cubi/worldgen";
export function setup(gen: WorldgenContext) {
gen.register_feature("testmod:glass_pillar", () => {});
}`,