Missing blocks
This commit is contained in:
@@ -92,6 +92,19 @@ Deno.test("a connecting block joins the same block beside it, and parts when it'
|
||||
assertEquals(state(0, 100, 0, "east"), 0);
|
||||
});
|
||||
|
||||
Deno.test("a connecting block that joins solid blocks joins the full side of another block too", async () => {
|
||||
const { t, hold, state } = await setup();
|
||||
t.send(1, { type: "chat", text: "/give dangerous_business:iron_bars" });
|
||||
hold(4);
|
||||
t.game.set_block(1, 100, 0, FLOOR);
|
||||
t.send(1, { type: "use_block", x: 0, y: 99, z: 0, face: "top", hit: [0.5, 1, 0.5] });
|
||||
assertEquals(state(0, 100, 0, "east"), 1);
|
||||
assertEquals(state(0, 100, 0, "west"), 0);
|
||||
|
||||
t.game.set_block(1, 100, 0, "cubi:air");
|
||||
assertEquals(state(0, 100, 0, "east"), 0);
|
||||
});
|
||||
|
||||
Deno.test("a block with a random look picks the same one wherever it's placed again", async () => {
|
||||
const { t, hold, state } = await setup();
|
||||
hold(2);
|
||||
|
||||
Reference in New Issue
Block a user