Change imports
This commit is contained in:
@@ -4,13 +4,13 @@
|
||||
// what machines do to the world through server scripts: read which way water flows, find items lying around and
|
||||
// change them, push things, break blocks over time, and use items on blocks like a player would
|
||||
import { assert, assertEquals, assertThrows } from "@std/assert";
|
||||
import type { ServerContext } from "bworld/server";
|
||||
import { AIR_ID } from "$/common/protocol.ts";
|
||||
import type { ServerContext } from "cubi/server";
|
||||
import { AIR_ID } from "@/common/protocol.ts";
|
||||
import { copy_dir, stone_floor, test_game } from "./helpers.ts";
|
||||
|
||||
// hands the test its context, and has a block that says who right clicked it and an item that gives a stick when used
|
||||
const SERVER_SCRIPT = `
|
||||
import type { ServerContext } from "bworld/server";
|
||||
import type { ServerContext } from "cubi/server";
|
||||
export function setup(ctx: ServerContext) {
|
||||
(globalThis as any).machines_ctx = ctx;
|
||||
ctx.components.register_block("testmod:button", {
|
||||
|
||||
Reference in New Issue
Block a user