squeek502 / AppleSkin

Food-related HUD improvements for Minecraft (AppleCore without the core)
https://minecraft.curseforge.com/projects/appleskin
The Unlicense
349 stars 62 forks source link

Exhaustion still renders when food hud is cancelled with Forge event #289

Closed BrownBear85 closed 8 months ago

BrownBear85 commented 9 months ago

I'm canceling RenderGuiOverlayEvent on Forge 1.20.1 when event.getOverlay() == VanillaGuiOverlay.FOOD_LEVEL.type() and this successfully cancels the food icons and saturation overlay, however the saturation checkerboard pattern that renders behind the food icons.

image

squeek502 commented 9 months ago

You'll want to cancel both RenderGuiOverlayEvent.Pre and RenderGuiOverlayEvent.Post.

https://github.com/squeek502/AppleSkin/blob/07dc6b6db4a98626617ceada5e87072653e6ae3f/java/squeek/appleskin/client/HUDOverlayHandler.java#L55-L92