Dispense fixture: the world's shape follows the case's dimension

GameLevel's build range now reads the world's shape, so a case in the
Nether or the End must set it as enter_dimension does: a bed exploding
there broke the block at y -1, below the level (use_item_on).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Ludovic MarieandClaude Opus 5.5 committed 2026-10-30 12:00:25 +01:00
1 parent 2867be0d53
commit f0651e7540
1 file changed
+2
@@ -186,6 +186,8 @@ impl Game<'_> {
Some("end") => self.dim = super::Dim::End,
_ => {}
}
// The level's build range follows its dimension, as `enter_dimension` sets it.
self.world.shape = self.dim.shape();
// The oracle level's clock stands at day time 6000.
self.world.day_time = 6000;
if let Some(rules) = case["rules"].as_object() {