[PR #5258] [MERGED] Give a tamed pet its owner's scoreboard team (finished from #5062) #6171

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

📋 Pull Request Information

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

Base: main ← Head: sweep-c/finish-5062


📝 Commits (1)

  • 54f11f1 Pet teams: look a mob up only when its own name has no team

📊 Changes

3 files changed (+43 additions, -9 deletions)

View changed files

📝 crates/horizon-client/src/game/glowing.rs (+1 -1)
📝 crates/horizon-client/src/game/names.rs (+1 -1)
📝 crates/horizon-client/src/game/scoreboard.rs (+41 -7)

📄 Description

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

Finishes #5062 by @MSedgeMC: their commits are kept as they wrote them (vanilla's TamableAnimal.getTeam: the pet's own team, else its root owner's). On top:

  • mob_team scanned every mob on each call, and mob_teams (every tick, for MobWorld) and the name tags and outlines (every frame) call it once per mob, so any world with a scoreboard team paid O(n²). Now the own team is checked first and the owner is looked up only without one, the tick builds the tamed owners in one pass, and the name tag and outline callers pass the mob they already hold.

cargo check -p horizon-client --bins --tests clean.

🤖 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/5258 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `sweep-c/finish-5062` --- ### 📝 Commits (1) - [`54f11f1`](https://github.com/horizon-rust/horizon/commit/54f11f17447471e2ea498dcce9dcedc4d7db4d90) Pet teams: look a mob up only when its own name has no team ### 📊 Changes **3 files changed** (+43 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/glowing.rs` (+1 -1) 📝 `crates/horizon-client/src/game/names.rs` (+1 -1) 📝 `crates/horizon-client/src/game/scoreboard.rs` (+41 -7) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Finishes #5062 by @MSedgeMC: their commits are kept as they wrote them (vanilla's `TamableAnimal.getTeam`: the pet's own team, else its root owner's). On top: - `mob_team` scanned every mob on each call, and `mob_teams` (every tick, for `MobWorld`) and the name tags and outlines (every frame) call it once per mob, so any world with a scoreboard team paid O(n²). Now the own team is checked first and the owner is looked up only without one, the tick builds the tamed owners in one pass, and the name tag and outline callers pass the mob they already hold. `cargo check -p horizon-client --bins --tests` clean. 🤖 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 06:15:28 +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#6171
No description provided.