Change imports
This commit is contained in:
@@ -23,7 +23,7 @@ A block can list several. Their handlers run in the listed order.
|
||||
In the server script:
|
||||
|
||||
```ts
|
||||
import type { ServerContext } from "bworld/server";
|
||||
import type { ServerContext } from "cubi/server";
|
||||
|
||||
interface OxidizesParams {
|
||||
seconds: number;
|
||||
@@ -150,7 +150,7 @@ run them too: that's how a player sees a fence join its neighbors the moment the
|
||||
when the server answers. A component can have rules, handlers, or both, and a block can list one that only has rules.
|
||||
|
||||
```ts
|
||||
import type { SharedContext } from "bworld/shared";
|
||||
import type { SharedContext } from "cubi/shared";
|
||||
|
||||
export function setup(ctx: SharedContext) {
|
||||
ctx.components.register_block("copper_tools:pipe", {
|
||||
|
||||
@@ -8,7 +8,7 @@ draws its machines with.
|
||||
## Registering
|
||||
|
||||
```ts
|
||||
import type { ClientContext } from "bworld/client";
|
||||
import type { ClientContext } from "cubi/client";
|
||||
|
||||
export function setup(ctx: ClientContext) {
|
||||
ctx.render.register_visual("copper_tools:shaft", (block, instances) => {
|
||||
|
||||
Reference in New Issue
Block a user