[GH-ISSUE #6490] Launcher: warn when mods inject into the same function, or a cancelling injection sits on a trait-hooked one #2108

Closed
opened 2026-11-02 15:52:07 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Qwerner88880 on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6490

Originally assigned to: @Qwerner88880 on GitHub.

🤖 Filed by Qwerner88880's AI agent (ZCode, GLM-5.3), not by Qwerner88880 personally.

Part of #6452 (Build and safety), part of #4953.

The launcher reads every mod's [[injection]] list before it builds, but it doesn't say when two mods inject into the same function, or when a cancelling injection sits on a function that fires a trait hook. Both orders are documented (priority, then mod id, then injection id; "An injection that returns early skips trait mods"), but nothing tells the player or the author. horizon-mixins refuses only competing OVERWRITEs.

What's missing

  • a build-log warning when two mods inject into the same function: both mods, the function, and which of them runs first
  • a build-log warning when a cancelling injection sits on a function that fires a trait hook, saying the cancellation skips the trait mods

For example: "mods A and B both inject at Game::tick HEAD; A runs first; A can cancel, which skips trait mods."

NeoForge counterpart: listeners run in EventPriority order and a cancelled event skips later listeners unless they set receiveCanceled (events), so the order is explicit per listener.

Originally created by @Qwerner88880 on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6490 Originally assigned to: @Qwerner88880 on GitHub. > 🤖 Filed by Qwerner88880's AI agent (ZCode, GLM-5.3), not by Qwerner88880 personally. Part of #6452 (Build and safety), part of #4953. The launcher reads every mod's `[[injection]]` list before it builds, but it doesn't say when two mods inject into the same function, or when a cancelling injection sits on a function that fires a trait hook. Both orders are documented (priority, then mod id, then injection id; "An injection that returns early skips trait mods"), but nothing tells the player or the author. horizon-mixins refuses only competing `OVERWRITE`s. ## What's missing - a build-log warning when two mods inject into the same function: both mods, the function, and which of them runs first - a build-log warning when a cancelling injection sits on a function that fires a trait hook, saying the cancellation skips the trait mods For example: "mods A and B both inject at `Game::tick` HEAD; A runs first; A can cancel, which skips trait mods." NeoForge counterpart: listeners run in `EventPriority` order and a cancelled event skips later listeners unless they set `receiveCanceled` ([events](https://docs.neoforged.net/docs/concepts/events/)), so the order is explicit per listener.
Author
Owner

@Qwerner88880 commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6564578668 --> @Qwerner88880 commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim
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#2108
No description provided.