Merge pull request #862 from ludovic111/fix/streaming-meshes-remote-lit

🤖 Agent: Merged after the real verify passed; the streaming_meshes tests pass locally with resources.
This commit is contained in:
Ludovic Marie
2026-10-18 14:45:55 +02:00
committed by GitHub
@@ -149,8 +149,9 @@ fn relit_columns_keep_every_mesh_current() {
state("minecraft:glowstone"),
state("minecraft:torch"),
);
// Columns from a server, one of them never sent: its neighbours stay
// unlit, next to lit columns within the render distance.
// Columns from a server, one of them not sent yet. They keep the light
// the server sent (#824, as vanilla's `enableChunkLight`), so its
// neighbours are lit too.
let mut streaming = Streaming::new(Arc::new(Saved), context.clone(), 3);
streaming.radius = 4;
streaming.remote = true;
@@ -176,7 +177,7 @@ fn relit_columns_keep_every_mesh_current() {
}
};
settle(&mut streaming, &mut world);
assert!(!streaming.is_lit(1, 0) && streaming.is_lit(0, 0));
assert!(streaming.is_lit(1, 0) && streaming.is_lit(0, 0));
// Open the roof and put torches in the cave on a ring two blocks inside
// the unlit (1, 0): its lit neighbours are relit, and their meshes change
// only through light (no edit is next to them).