fix HUD rendering in debug mode

HUD modules now properly render even when debug overlays are active
This commit is contained in:
Vadim Totok
2026-05-06 10:16:20 +03:00
parent 599fb54335
commit b4f75da102
@@ -17,8 +17,6 @@ public class MixinGui {
@Inject(method = "render", at = @At("RETURN"))
public void render(GuiGraphics context, DeltaTracker tickCounter, CallbackInfo ci) {
if (Minecraft.getInstance().gui.getDebugOverlay().showDebugScreen()) return;
Render2DEvent event = new Render2DEvent(context, tickCounter.getGameTimeDeltaPartialTick(true));
EVENT_BUS.post(event);
}