Single module modding
This commit is contained in:
+3
-3
@@ -12,7 +12,7 @@ import { sell_value } from "@/common/inventory.ts";
|
||||
import { block_visuals, Visuals } from "@/client/rendering/visuals.ts";
|
||||
import { AssetManager } from "@/client/assets.ts";
|
||||
import { fluid_rules, set_fluid_rules } from "@/client/fluid_rules.ts";
|
||||
import { setup as setup_client } from "@/mods/bworld/scripts/client.ts";
|
||||
import { client as setup_client } from "@/mods/bworld/scripts/client.ts";
|
||||
import { JUICE_VALUE, type JuiceableParams, WINE_VALUE } from "@/mods/bworld/scripts/shared.ts";
|
||||
import type { FermentableRecipe } from "@/mods/bworld/scripts/fermenting.ts";
|
||||
import { copy_dir, stone_floor, test_game } from "./helpers.ts";
|
||||
@@ -277,14 +277,14 @@ Deno.test("a broken bworld:fermentable recipe stops the server from starting", a
|
||||
}
|
||||
});
|
||||
|
||||
// a juicer at 1 100 1 drawn by bworld's client script, and a way to set a field of its client data. its fluids have the
|
||||
// a juicer at 1 100 1 drawn by bworld's client phase, and a way to set a field of its client data. its fluids have the
|
||||
// server's rules, the same as a client's
|
||||
async function drawn_juicer() {
|
||||
const { game } = await setup();
|
||||
AssetManager.instance.assets["cubi:textures_info"] = {};
|
||||
const client_rules = fluid_rules;
|
||||
set_fluid_rules(game.mods.fluid_rules);
|
||||
// bworld's client script, with only what it needs for its visuals
|
||||
// bworld's client phase, with only what it needs for its visuals
|
||||
const made = new Map<string, (block: VisualBlock, instances: Instances) => Visual>();
|
||||
setup_client({
|
||||
ui: { register_menu_screen() {}, add_item_tooltip() {} },
|
||||
|
||||
Reference in New Issue
Block a user