Repository navigation
HUD hook also on Forge's GuiIngameForge - #3
Merged
Merged
Conversation
- native/agent: DLL that attaches to the game's JVM, finds Minecraft's class loader (mcp/srg/notch names) and starts the Java core on top of it - native/inject: finds Java game windows, loads the agent via LoadLibraryW - native/app: Prism.exe with Inject/Unload, auto-inject for Lunar 1.8.9, plugin list and log; agent + core embedded - java/api + java/core: plugin API, event bus, scheduler on the client thread, plugin manager with hot reload - tests/run.sh: end-to-end test against a stand-in game Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N1jsNaA8oesLoCYL6zeeF7
- agent: JVMTI retransform with a ClassFileLoadHook that is only on for the class being patched; Native.retransform0 replaces redefineClass0 - core: hook system (ASM, relocated to prism.shadow.asm). Injected code uses only JDK classes via System properties; all patches undone on unload - events: TickEvent, RenderOverlayEvent, RenderWorldEvent, KeyEvent, MouseButtonEvent (key/mouse cancelable); Draw API for text and rects - fix: a plugin added while running now says Loaded, not Reloaded - tests: stand-in game gets the hooked methods; hook test plugin checks events, cancel, restore on unload and re-inject Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N1jsNaA8oesLoCYL6zeeF7
Lunar with Forge mods (and Forge) draw the HUD with GuiIngameForge, which overrides renderGameOverlay without calling the vanilla method, so RenderOverlayEvent never fired there. Optional hooks skip quietly when the class doesn't exist. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N1jsNaA8oesLoCYL6zeeF7
MonsterMilo
pushed a commit
that referenced
this pull request
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Milo · project thread
On Lunar with Forge mods, the HUD label never showed. All 4 hooks were placed and key events worked, but
RenderOverlayEventnever fired.The cause is that Forge (and Lunar with Forge mods) draws the HUD with
GuiIngameForge. It overridesrenderGameOverlayand never calls the vanilla method, so our hook onGuiIngamedidn't run.GuiIngameForge.renderGameOverlay. It shares the same handler as the vanilla hook.Generated by Claude Code