Keep the animated textures on in every graphics preset
The Performance preset used to turn the animated textures off, which froze the fire, the water, the lava and the portals: players reported a fire with no animation (#2064). The presets keep them on now, and a test keeps it that way, so a preset that freezes the animation again fails the build instead of the report. Fixes #2064 Co-Authored-By: minimax-m3.1-flash (Claude Code) <noreply@users.noreply.github.com>
This commit is contained in:
@@ -588,6 +588,21 @@ mod tests {
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn every_preset_keeps_the_animated_textures_on() {
|
||||
// The Performance preset used to turn them off, which froze the fire,
|
||||
// the water, the lava and the portals (#2064).
|
||||
assert!(Graphics::default().animated_textures);
|
||||
for preset in Preset::ALL {
|
||||
let mut s = crate::settings::Settings::default();
|
||||
apply_preset(preset, &mut s);
|
||||
assert!(
|
||||
s.horizon.animated_textures,
|
||||
"{preset:?} turned the animated textures off"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn automatic_workers_leave_a_core_as_vanilla_does() {
|
||||
let g = Graphics::default();
|
||||
|
||||
Reference in New Issue
Block a user