[PR #2716] [MERGED] Mobs: drop the unreachable second rabbit arm in mob_to_nbt #4562

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

📋 Pull Request Information

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

Base: main ← Head: fix/duplicate-rabbit-arm


📝 Commits (1)

  • 07e935d Mobs: drop the unreachable second rabbit arm in mob_to_nbt

📊 Changes

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

View changed files

📝 crates/horizon-client/src/entity_nbt.rs (+0 -4)

📄 Description

🤖 Opened by FusselTV's AI agent (Claude Code, Opus 5.5), not by FusselTV personally.

What and why

#2585 and 0d496fdc8 ("Save and load the variant of axolotls, rabbits, parrots, salmon and tropical fish") both added a "minecraft:rabbit" arm to mob_to_nbt's match. The first one writes RabbitType and MoreCarrotTicks, so the second is unreachable, and cargo clippy -p horizon-client -- -D warnings fails on main with unreachable_patterns (entity_nbt.rs:502).

What changes:

  • The second arm is removed. The saved fields are unchanged: the first arm already wrote the same RabbitType.

Tests

  • cargo clippy -p horizon-client --all-targets -- -D warnings: clean (fails on main).
  • cargo test -p horizon-client --lib -- entity_nbt: 12 passed, including foxes_rabbits_and_goats_keep_their_kind.

Self-check

pr_ready (tools/pr_ready.py --quick --base upstream/main on db7aab9e420e, against upstream/main at 12e0094f1, 6 min 35 s)

Check Result
Scope ✅ 1 files, +0 −4
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 331 passed (28 s)
rustfmt ✅ (7 s)
clippy ✅ (1 min 36 s)
tests: horizon-client ✅ 1315 passed (3 min 38 s)
doc tests ✅ 0 passed (43 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 ➖ 333 affected, to run in CI (--quick): arrow, attribute_map_queries, auto_jump, biome_source_codec, biome_temperature, biome_weather, biome_zoom, block_blob, block_collision_scan, block_column, block_entity_anim, block_entity_render and 321 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 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/2716 **Author:** [@FusselTV](https://github.com/FusselTV) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/duplicate-rabbit-arm` --- ### 📝 Commits (1) - [`07e935d`](https://github.com/horizon-rust/horizon/commit/07e935d0bfee8d652520e8ce8a931d1512b1d280) Mobs: drop the unreachable second rabbit arm in mob_to_nbt ### 📊 Changes **1 file changed** (+0 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/entity_nbt.rs` (+0 -4) </details> ### 📄 Description > 🤖 Opened by FusselTV's AI agent (Claude Code, Opus 5.5), not by FusselTV personally. ## What and why #2585 and 0d496fdc8 ("Save and load the variant of axolotls, rabbits, parrots, salmon and tropical fish") both added a `"minecraft:rabbit"` arm to `mob_to_nbt`'s match. The first one writes `RabbitType` and `MoreCarrotTicks`, so the second is unreachable, and `cargo clippy -p horizon-client -- -D warnings` fails on main with `unreachable_patterns` (`entity_nbt.rs:502`). What changes: - The second arm is removed. The saved fields are unchanged: the first arm already wrote the same `RabbitType`. ## Tests - `cargo clippy -p horizon-client --all-targets -- -D warnings`: clean (fails on main). - `cargo test -p horizon-client --lib -- entity_nbt`: 12 passed, including `foxes_rabbits_and_goats_keep_their_kind`. ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on db7aab9e420e, against upstream/main at 12e0094f1, 6 min 35 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +0 −4 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 331 passed (28 s) | | rustfmt | ✅ (7 s) | | clippy | ✅ (1 min 36 s) | | tests: horizon-client | ✅ 1315 passed (3 min 38 s) | | doc tests | ✅ 0 passed (43 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 | ➖ 333 affected, to run in CI (--quick): arrow, attribute_map_queries, auto_jump, biome_source_codec, biome_temperature, biome_weather, biome_zoom, block_blob, block_collision_scan, block_column, block_entity_anim, block_entity_render and 321 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 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:04 +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#4562
No description provided.