Rename engine to cubi
This commit is contained in:
@@ -29,7 +29,7 @@ export function setup(ctx: ServerContext) {
|
||||
// hangs from the block above and falls when it's gone, which only a server handler can do
|
||||
ctx.components.register_block("testmod:lantern", {
|
||||
on_neighbor_change(block) {
|
||||
if (ctx.world.get_block(block.x, block.y + 1, block.z) === "bworld:air") {
|
||||
if (ctx.world.get_block(block.x, block.y + 1, block.z) === "cubi:air") {
|
||||
ctx.world.break_block(block.x, block.y, block.z);
|
||||
}
|
||||
},
|
||||
@@ -196,7 +196,7 @@ Deno.test("a script can tell any block of a change, and one told in on_break hea
|
||||
|
||||
// right away, when nothing else is changing
|
||||
command("/tell 2 100 0 2 100 5");
|
||||
assertEquals(log(), [["neighbor", "2 100 0", "bworld:air", "2 100 5", 1]]);
|
||||
assertEquals(log(), [["neighbor", "2 100 0", "cubi:air", "2 100 5", 1]]);
|
||||
cleanup();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user