[PR #2742] [MERGED] Keep the animated textures on in every graphics preset #4580

Closed
opened 2026-11-03 04:18:14 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2742
Author: @levzzz5154
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @ludovic111

Base: main ← Head: fix/fire-animated-textures


📝 Commits (2)

  • a3e581b Keep the animated textures on in every graphics preset
  • a776390 Merge remote-tracking branch 'upstream/main' into fix/fire-animated-textures

📊 Changes

1 file changed (+15 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/graphics.rs (+15 -0)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code), not by levzzz5154 himself.

What and why

#2064 reports a fire with no animation, neither on the ground nor on a burning mob. The
cause was the Performance graphics preset, which turned the animated textures off: the
fire's texture (block/fire_0, a 32-frame animation in the vanilla assets) stopped
changing, and so did the water, the lava and the portals. The fix landed in #2081 (every
preset keeps the animated textures on) and #2105 (the fire's smoke), and the current
main already renders the fire the vanilla way.

What was missing is a test: nothing stopped a preset from freezing the animation again,
which is exactly how the report came about. This pull request adds one — every graphics
preset must keep the animated textures on, and the default must too.

The test fails on the tree before #2081 (g.animated_textures = preset != Preset::Performance;): Performance turned the animated textures off.

Fixes #2064

Vanilla reference

  • assets/minecraft/textures/block/fire_0.png.mcmeta — the fire's texture is a 32-frame
    animation, so vanilla's fire animates through the block atlas; fire_1.png is the
    second layer of the crossed quads.
  • assets/minecraft/blockstates/fire.json and models/block/fire_floor0.json,
    fire_floor1.json — the ground fire is the fire_floor*/fire_side*/fire_up* models
    with the block/fire_0 and block/fire_1 textures.
  • net.minecraft.client.renderer.feature.FlameFeatureRenderer — a burning entity's
    flames are quads stacked up its box, alternating the atlas sprites ModelBakery.FIRE_0
    and ModelBakery.FIRE_1 (ss % 2 == 0 ? fire1 : fire2).
  • net.minecraft.client.renderer.entity.EntityRenderDispatcher — the flame feature is
    submitted for an entity whose displayFireAnimation() is set (the entity is on fire).
  • net.minecraft.world.level.block.BaseFireBlock.animateTick — the fire's smoke: three
    large smoke above it, or two at each burnable neighbour's face when the block below
    neither burns nor is sturdy up.

Self-check

pr_ready (tools/pr_ready.py --quick --base upstream/main on cachyos-x8664, against upstream/main at ac42f11d7, 4 min 18 s)

Check Result
Scope ✅ 1 files, +15 −0
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 331 passed (18 s)
rustfmt ✅ (4 s)
clippy ✅ (1 min 10 s)
tests: horizon-client ✅ 1316 passed (2 min 4 s)
doc tests ✅ 0 passed (30 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 36 affected, to run in CI (--quick): block_removal, command_exec, composter, crafter, cursor_death, dedicated_server, dispenser, forced_end, friends_integration, hardcore_respawn, lan_integration, locator_bar and 24 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)
  • cargo test --locked --profile fast -p horizon-client --lib graphics::tests — 7 passed
    (including the new every_preset_keeps_the_animated_textures_on).
  • The same test with the Performance preset's old line
    (g.animated_textures = preset != Preset::Performance;) restored:
    graphics::tests::every_preset_keeps_the_animated_textures_on ... FAILED with
    Performance turned the animated textures off.
  • The fire's own animation is already covered by the client's unit test
    sprites::tests::native_fire_sprites_register_full_animation_sequences, which reads the
    vanilla assets and asserts that block/fire_0, block/fire_1, block/soul_fire_0 and
    block/soul_fire_1 each carry an animation whose frames differ.
  • cargo build --locked --profile fast -p horizon-client --bin horizon-client --bin horizon-ctl — builds clean (the one warning, an unreachable minecraft:rabbit
    pattern, is already on main).

🤖 Generated with Claude Code.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/2742 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/fire-animated-textures` --- ### 📝 Commits (2) - [`a3e581b`](https://github.com/horizon-rust/horizon/commit/a3e581b56fde6005dcd94c2c772b249c559222b2) Keep the animated textures on in every graphics preset - [`a776390`](https://github.com/horizon-rust/horizon/commit/a77639022cbe547d1e58c163101e70cbabea874c) Merge remote-tracking branch 'upstream/main' into fix/fire-animated-textures ### 📊 Changes **1 file changed** (+15 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/graphics.rs` (+15 -0) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code), not by levzzz5154 himself. ## What and why #2064 reports a fire with no animation, neither on the ground nor on a burning mob. The cause was the Performance graphics preset, which turned the animated textures off: the fire's texture (`block/fire_0`, a 32-frame animation in the vanilla assets) stopped changing, and so did the water, the lava and the portals. The fix landed in #2081 (every preset keeps the animated textures on) and #2105 (the fire's smoke), and the current `main` already renders the fire the vanilla way. What was missing is a test: nothing stopped a preset from freezing the animation again, which is exactly how the report came about. This pull request adds one — every graphics preset must keep the animated textures on, and the default must too. The test fails on the tree before #2081 (`g.animated_textures = preset != Preset::Performance;`): `Performance turned the animated textures off`. Fixes #2064 ## Vanilla reference * `assets/minecraft/textures/block/fire_0.png.mcmeta` — the fire's texture is a 32-frame animation, so vanilla's fire animates through the block atlas; `fire_1.png` is the second layer of the crossed quads. * `assets/minecraft/blockstates/fire.json` and `models/block/fire_floor0.json`, `fire_floor1.json` — the ground fire is the `fire_floor*`/`fire_side*`/`fire_up*` models with the `block/fire_0` and `block/fire_1` textures. * `net.minecraft.client.renderer.feature.FlameFeatureRenderer` — a burning entity's flames are quads stacked up its box, alternating the atlas sprites `ModelBakery.FIRE_0` and `ModelBakery.FIRE_1` (`ss % 2 == 0 ? fire1 : fire2`). * `net.minecraft.client.renderer.entity.EntityRenderDispatcher` — the flame feature is submitted for an entity whose `displayFireAnimation()` is set (the entity is on fire). * `net.minecraft.world.level.block.BaseFireBlock.animateTick` — the fire's smoke: three large smoke above it, or two at each burnable neighbour's face when the block below neither burns nor is sturdy up. ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on cachyos-x8664, against upstream/main at ac42f11d7, 4 min 18 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +15 −0 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 331 passed (18 s) | | rustfmt | ✅ (4 s) | | clippy | ✅ (1 min 10 s) | | tests: horizon-client | ✅ 1316 passed (2 min 4 s) | | doc tests | ✅ 0 passed (30 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 36 affected, to run in CI (--quick): block_removal, command_exec, composter, crafter, cursor_death, dedicated_server, dispenser, forced_end, friends_integration, hardcore_respawn, lan_integration, locator_bar and 24 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | * `cargo test --locked --profile fast -p horizon-client --lib graphics::tests` — 7 passed (including the new `every_preset_keeps_the_animated_textures_on`). * The same test with the Performance preset's old line (`g.animated_textures = preset != Preset::Performance;`) restored: `graphics::tests::every_preset_keeps_the_animated_textures_on ... FAILED` with `Performance turned the animated textures off`. * The fire's own animation is already covered by the client's unit test `sprites::tests::native_fire_sprites_register_full_animation_sequences`, which reads the vanilla assets and asserts that `block/fire_0`, `block/fire_1`, `block/soul_fire_0` and `block/soul_fire_1` each carry an animation whose frames differ. * `cargo build --locked --profile fast -p horizon-client --bin horizon-client --bin horizon-ctl` — builds clean (the one warning, an unreachable `minecraft:rabbit` pattern, is already on main). 🤖 Generated with [Claude Code](https://claude.com/claude-code). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:18:14 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#4580
No description provided.