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
+3 -3
View File
@@ -3,11 +3,11 @@
// what players do with their hands: sneaking while placing and using, how far they reach, and using an item over time
import { assert, assertEquals } from "@std/assert";
import { ATTRIBUTES } from "$/server/game/entity/attributes.ts";
import { ATTRIBUTES } from "@/server/game/entity/attributes.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 = (key: string, value: unknown = 1) => {
const all = ctx.storage.get<Record<string, unknown[]>>("log") ?? {};
@@ -40,7 +40,7 @@ export function setup(ctx: ServerContext) {
// a pillar placed upside down while sneaking, like a block whose placement reads sneaking
const SHARED_SCRIPT = `
import type { SharedContext } from "bworld/shared";
import type { SharedContext } from "cubi/shared";
export function setup(ctx: SharedContext) {
ctx.components.register_block("testmod:pillar", {
state_for_placement(placement) { return { flipped: placement.sneaking ? 1 : 0 }; },