Change imports
This commit is contained in:
@@ -4,14 +4,14 @@
|
||||
// the server's side of a block hearing about changes: its components' on_neighbor_change, after the shared rules, and
|
||||
// on_state_change when its own states change. blocks hear of changes through a queue, once the change is done
|
||||
import { assert, assertEquals } from "@std/assert";
|
||||
import { AIR_ID } from "$/common/protocol.ts";
|
||||
import { MAX_NEIGHBOR_UPDATES } from "$/common/block_rules.ts";
|
||||
import { get_state_value } from "$/common/utils.ts";
|
||||
import type { GameServer } from "$/server/game/game_server.ts";
|
||||
import { AIR_ID } from "@/common/protocol.ts";
|
||||
import { MAX_NEIGHBOR_UPDATES } from "@/common/block_rules.ts";
|
||||
import { get_state_value } from "@/common/utils.ts";
|
||||
import type { GameServer } from "@/server/game/game_server.ts";
|
||||
import { copy_dir, stone_floor, test_game } from "./helpers.ts";
|
||||
|
||||
const SERVER_SCRIPT = `
|
||||
import type { ServerContext } from "bworld/server";
|
||||
import type { ServerContext } from "cubi/server";
|
||||
export function setup(ctx: ServerContext) {
|
||||
const log = (event: unknown[]) => ctx.storage.set("log", [...ctx.storage.get<unknown[]>("log") ?? [], event]);
|
||||
const at = ({ x, y, z }: { x: number; y: number; z: number }) => x + " " + y + " " + z;
|
||||
@@ -56,7 +56,7 @@ export function setup(ctx: ServerContext) {
|
||||
`;
|
||||
|
||||
const SHARED_SCRIPT = `
|
||||
import type { SharedContext } from "bworld/shared";
|
||||
import type { SharedContext } from "cubi/shared";
|
||||
export function setup(ctx: SharedContext) {
|
||||
// marks the watcher once anything beside it changes
|
||||
ctx.components.register_block("testmod:watcher", {
|
||||
|
||||
Reference in New Issue
Block a user