[PR #3851] [MERGED] Fix axolotl NBT test: query glowing effect by namespaced id #5250

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3851
Author: @DUzzL
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @levzzz5154

Base: main ← Head: fix/axolotl-nbt-glowing-test-3840


📝 Commits (1)

  • b9ed9d5 Fix axolotl NBT test: query glowing effect by namespaced id

📊 Changes

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

View changed files

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

📄 Description

Fixes #3840.

Mob::add_effect normalizes effect ids to their minecraft: form (08b97652), and has_effect compares ids verbatim. The test added "glowing" and then asked for "glowing", so the lookup missed "minecraft:glowing". Every other caller already uses the namespaced id (e.g. is_currently_glowing). The test now asks for "minecraft:glowing". Test-only change, no behavior change.

No vanilla parity harness applies (test-only).

Verification: cargo fmt --check -p horizon-client is clean and the test compiles and passes locally, but there is no .local/horizon-client data on my machine, so the test returns at its early items.json check without reaching the fixed assertion. Please confirm with prepared data or CI.


🔄 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/3851 **Author:** [@DUzzL](https://github.com/DUzzL) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/axolotl-nbt-glowing-test-3840` --- ### 📝 Commits (1) - [`b9ed9d5`](https://github.com/horizon-rust/horizon/commit/b9ed9d58de34db316cfd09bc5be2351a827fd89d) Fix axolotl NBT test: query glowing effect by namespaced id ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/entity_nbt.rs` (+1 -1) </details> ### 📄 Description Fixes #3840. `Mob::add_effect` normalizes effect ids to their `minecraft:` form (08b97652), and `has_effect` compares ids verbatim. The test added `"glowing"` and then asked for `"glowing"`, so the lookup missed `"minecraft:glowing"`. Every other caller already uses the namespaced id (e.g. `is_currently_glowing`). The test now asks for `"minecraft:glowing"`. Test-only change, no behavior change. No vanilla parity harness applies (test-only). Verification: `cargo fmt --check -p horizon-client` is clean and the test compiles and passes locally, but there is no `.local/horizon-client` data on my machine, so the test returns at its early `items.json` check without reaching the fixed assertion. Please confirm with prepared data or CI. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:11:16 +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#5250
No description provided.