Fix: Interpolate world positions with the frame's partial tick

- Pass the 1.8.9 HUD method's partial tick through the render hook into
  EventRender2D instead of reading Timer.renderPartialTicks reflectively
- Let WorldView.snapshot() take that value so ESP projection matches the
  rendered world and no longer advances in 20 Hz steps
- Keep the reflected timer read as a fallback and warn once when it cannot
  be resolved instead of silently interpolating with 0
This commit is contained in:
xiaozhou233 committed 2026-11-10 13:47:55 +08:00
1 parent d8a46a1b70
commit ed7fa13e7f
9 files changed
+99 -19

No files matched your search

@@ -30,6 +30,15 @@ public final class Hooks {
Render2DEvents.fire(context, inWorld);
}
/**
* 1.8.9 entry point: the HUD method receives the frame's partial tick, so
* injected code passes it straight through as {@code $1}.
*/
public static void render2d(Object context, boolean inWorld,
float partialTicks) {
Render2DEvents.fire(context, inWorld, partialTicks);
}
public static void render2d(Object context) {
Render2DEvents.fire(context);
}