streaming_meshes test: remote columns arrive lit since #824

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-18 14:39:34 +02:00
parent 4f9df73831
commit 6bbcf8e3d6
@@ -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).