World gen stuff
This commit is contained in:
@@ -8,10 +8,9 @@ import { EverythingRegistry } from "@/common/everything_registry.ts";
|
||||
import type { ModListing } from "@/common/mod_loader.ts";
|
||||
import { read_mod } from "@/common/mod.ts";
|
||||
import { load_client_mods } from "@/client/mods.ts";
|
||||
import { load_order } from "@/common/mod_check.ts";
|
||||
import { load_and_check } from "@/tools/check_mods.ts";
|
||||
import { pack_mod } from "@/tools/pack_mod.ts";
|
||||
import { copy_dir, test_game } from "./helpers.ts";
|
||||
import { copy_dir, load_as_player, test_game } from "./helpers.ts";
|
||||
|
||||
// sifts into what its component says, and a shaped recipe made in code. then sifting and washing as testrecipes' own
|
||||
// types, found by the item put in
|
||||
@@ -222,16 +221,5 @@ Deno.test("recipes can only be registered while shared scripts set up", async ()
|
||||
});
|
||||
|
||||
Deno.test("every mod's recipe types are registered on a client too, so it loads them", async () => {
|
||||
const mods = load_order(await load_and_check("mods"));
|
||||
const packed = await Promise.all(mods.map(async (mod) => read_mod(await pack_mod(mod), `${mod.id}.cubi`)));
|
||||
const listings = mods.map((mod): ModListing => ({
|
||||
id: mod.id,
|
||||
name: mod.id,
|
||||
version: "1.0.0",
|
||||
sha256: "",
|
||||
file: "",
|
||||
size: 0,
|
||||
}));
|
||||
EverythingRegistry.clear();
|
||||
await load_client_mods(listings, packed);
|
||||
await load_as_player("mods");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user