No more melon slices from melons

This commit is contained in:
2026-10-31 16:56:44 -03:00
parent 407ed77385
commit 65934d34a1
+1 -12
View File
@@ -307,7 +307,7 @@ Deno.test("beetroots, cotton and strawberries grow, and strawberries and cotton
assertEquals(t.state(2, 101, 0, "age"), 7);
});
Deno.test("a pumpkin plant becomes a pumpkin the morning it's grown, and a melon breaks into slices", async () => {
Deno.test("a pumpkin plant becomes a pumpkin the morning it's grown", async () => {
const t = await setup(["bworld:bone_meal 64"]);
// pumpkins grow in autumn, from day 99
t.game.set_time(98 * CYCLE_TICKS);
@@ -319,17 +319,6 @@ Deno.test("a pumpkin plant becomes a pumpkin the morning it's grown, and a melon
t.next_morning();
assertEquals(t.game.world.get_block_id(0, 101, 0), "bworld:pumpkin");
assertEquals(t.game.world.get_tile(0, 101, 0), undefined, "no crop data left behind");
// bone meal ripens it too
t.game.set_block(1, 100, 0, "bworld:hoed_dirt");
t.game.set_block(1, 101, 0, "bworld:melon_plant");
t.hold("bworld:bone_meal");
for (let i = 0; i < 12; i++) t.use(1, 101, 0);
assertEquals(t.game.world.get_block_id(1, 101, 0), "bworld:melon");
t.send(1, { type: "break_block", x: 1, y: 101, z: 0 });
const slices = t.game.item_entities().map((e) => e.item.to_data());
assertEquals(slices.map((item) => item.id), ["bworld:melon_slice"]);
assert(slices[0].count >= 3 && slices[0].count <= 7);
});
Deno.test("blocks without data run on_new_day near players, once a morning", async () => {