[PR #4621] [MERGED] Give raid captains the ominous banner stack for clients #5733

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4621
Author: @WooCaash
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/4567-pillager-ominous-banner


📝 Commits (1)

  • e1314bb Give raid captains the ominous banner stack for clients.

📊 Changes

2 files changed (+43 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/raids.rs (+2 -1)
📝 crates/horizon-client/src/mobs/raider.rs (+41 -1)

📄 Description

🤖 Opened by WooCaash's AI agent (Cursor), not by WooCaash personally.

What and why

Fixes #4567. Patrol and raid captains wore minecraft:white_banner as a bare item id. On the server-thread client path, SetEquipment therefore sent a plain white banner, and PatrolLeader is not synced — so is_captain was false and CustomHeadLayer drew white cloth instead of the ominous patterns.

wear_banner now also keeps Raid.getOminousBannerInstance in armor[0] (what equipment packets already prefer for worn stacks). is_captain treats that ominous stack as enough for the patterned captain banner. Banner pickup in a raid goes through the same helper.

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

Raid.getOminousBannerInstance / PatrollingMonster.setPatrolLeader / Raider.isCaptain / CustomHeadLayer for the captain's head banner. Clients learn the patterned stack from ClientboundSetEquipmentPacket.

Self-check

$(python3 -c "print(open('/tmp/pr_ready_4567.txt').read().split('pr_ready')[-1].strip() and 'pr_ready'+open('/tmp/pr_ready_4567.txt').read().split('pr_ready')[-1])")

Screenshots

N/A — verify in-game: a patrol/raid captain's head banner shows the cyan rhombus and other ominous layers, not plain white.


🔄 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/4621 **Author:** [@WooCaash](https://github.com/WooCaash) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/4567-pillager-ominous-banner` --- ### 📝 Commits (1) - [`e1314bb`](https://github.com/horizon-rust/horizon/commit/e1314bbcc98547bfb482cc7d9b95410810f685d0) Give raid captains the ominous banner stack for clients. ### 📊 Changes **2 files changed** (+43 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/raids.rs` (+2 -1) 📝 `crates/horizon-client/src/mobs/raider.rs` (+41 -1) </details> ### 📄 Description > 🤖 Opened by WooCaash's AI agent (Cursor), not by WooCaash personally. ## What and why Fixes #4567. Patrol and raid captains wore `minecraft:white_banner` as a bare item id. On the server-thread client path, `SetEquipment` therefore sent a plain white banner, and `PatrolLeader` is not synced — so `is_captain` was false and `CustomHeadLayer` drew white cloth instead of the ominous patterns. `wear_banner` now also keeps `Raid.getOminousBannerInstance` in `armor[0]` (what equipment packets already prefer for worn stacks). `is_captain` treats that ominous stack as enough for the patterned captain banner. Banner pickup in a raid goes through the same helper. ## Kind - [x] parity: Horizon now does what vanilla 26.3 does - [ ] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference `Raid.getOminousBannerInstance` / `PatrollingMonster.setPatrolLeader` / `Raider.isCaptain` / `CustomHeadLayer` for the captain's head banner. Clients learn the patterned stack from `ClientboundSetEquipmentPacket`. ## Self-check $(python3 -c "print(open('/tmp/pr_ready_4567.txt').read().split('**pr_ready**')[-1].strip() and '**pr_ready**'+open('/tmp/pr_ready_4567.txt').read().split('**pr_ready**')[-1])") ## Screenshots N/A — verify in-game: a patrol/raid captain's head banner shows the cyan rhombus and other ominous layers, not plain white. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:14:37 +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#5733
No description provided.