[PR #5282] [MERGED] Show server resource packs in the Resource Packs list #6183

Closed
opened 2026-11-03 06:15:38 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5282
Author: @Ashura006
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @ludovic111

Base: main ← Head: feat/server-pack-in-list


📝 Commits (1)

  • fcfcc67 Show server resource packs in the Resource Packs list

📊 Changes

8 files changed (+95 additions, -10 deletions)

View changed files

📝 crates/horizon-client-render/src/options_ui.rs (+3 -0)
📝 crates/horizon-client-render/src/packs.rs (+57 -2)
📝 crates/horizon-client/src/game/options.rs (+1 -1)
📝 crates/horizon-client/src/game/packs.rs (+29 -3)
📝 crates/horizon-client/src/game/startup_menu.rs (+1 -1)
📝 tools/port_map/client2-008.tsv (+1 -0)
📝 tools/port_map/client2-017.tsv (+2 -2)
📝 tools/port_map/rest-019.tsv (+1 -1)

📄 Description

🤖 Opened by Ashura006's AI agent (Cursor), not by Ashura006 personally.
Fixes #5218

Summary

  • Active server (and world) resource packs from DownloadedPackSource now appear in Options → Resource Packs as pack.source.server / pack.source.world: required, fixed at the top (DOWNLOADED_PACK_SELECTION), so they cannot be disabled or reordered.
  • Their server/… ids stay out of options.txt resourcePacks on commit.
  • Unit test for the selection model; port_map citations updated.

Test plan

  • cargo test -p horizon-client-render --lib packs::
  • cargo test -p horizon-client --lib --bins -- packs::
  • cargo clippy -p horizon-client-render -p horizon-client --lib --bins -- -D warnings
  • cargo fmt
  • Join a server that pushes a pack → open Resource Packs: pack shows as Server, selected, no remove/move; leave server → it disappears
    🤖 Generated with Cursor

🔄 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/5282 **Author:** [@Ashura006](https://github.com/Ashura006) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/server-pack-in-list` --- ### 📝 Commits (1) - [`fcfcc67`](https://github.com/horizon-rust/horizon/commit/fcfcc67c012cac4ded318e460a6abceaf3d763dd) Show server resource packs in the Resource Packs list ### 📊 Changes **8 files changed** (+95 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/options_ui.rs` (+3 -0) 📝 `crates/horizon-client-render/src/packs.rs` (+57 -2) 📝 `crates/horizon-client/src/game/options.rs` (+1 -1) 📝 `crates/horizon-client/src/game/packs.rs` (+29 -3) 📝 `crates/horizon-client/src/game/startup_menu.rs` (+1 -1) 📝 `tools/port_map/client2-008.tsv` (+1 -0) 📝 `tools/port_map/client2-017.tsv` (+2 -2) 📝 `tools/port_map/rest-019.tsv` (+1 -1) </details> ### 📄 Description > 🤖 Opened by Ashura006's AI agent (Cursor), not by Ashura006 personally. Fixes #5218 ## Summary - Active server (and world) resource packs from `DownloadedPackSource` now appear in Options → Resource Packs as `pack.source.server` / `pack.source.world`: required, fixed at the top (`DOWNLOADED_PACK_SELECTION`), so they cannot be disabled or reordered. - Their `server/…` ids stay out of `options.txt` `resourcePacks` on commit. - Unit test for the selection model; port_map citations updated. ## Test plan - [x] `cargo test -p horizon-client-render --lib packs::` - [x] `cargo test -p horizon-client --lib --bins -- packs::` - [x] `cargo clippy -p horizon-client-render -p horizon-client --lib --bins -- -D warnings` - [x] `cargo fmt` - [ ] Join a server that pushes a pack → open Resource Packs: pack shows as Server, selected, no remove/move; leave server → it disappears 🤖 Generated with [Cursor](https://cursor.com) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:15:38 +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#6183
No description provided.