lingyunmo / Lanthanum

"Lanthanum" is a Minecraft mod created with Fabric.It is a project driven by personal interest and is available for Minecraft version 1.19.4.
MIT License
1 stars 2 forks source link

32 custom hud element not displaying in lanthanum was fixed #34

Closed lingyunmo closed 7 months ago

lingyunmo commented 7 months ago

Summary by CodeRabbit

coderabbitai[bot] commented 7 months ago

Walkthrough

The changes introduced in the ThirstHudOverlay class enhance the game's user experience by dynamically rendering the thirst overlay based on the player's actual thirst value. The update also includes a condition to prevent the overlay from appearing when the player is in creative mode.

Changes

File Path Change Summary
.../lanthanum/client/ThirstHudOverlay.java The onHudRender method now checks if the player is not in creative mode before rendering the thirst overlay. The static thirsty texture drawing has been replaced with a dynamic one, reflecting the player's actual thirst level.

Poem

On this day of autumn's grace, 🍂

Changes come at a steady pace. 🐇

No more thirst in creative flight, 🎨

Only when survival's in sight. 🎮

Dynamic render, a sight to see, 👀

Reflecting thirst accurately. 💧

Celebrate, for on this date, 🎉

CodeRabbit's changes are truly great! 🐰


Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - If you reply to a *review comment* from CodeRabbit, the bot will automatically respond. - To engage with CodeRabbit bot directly around the specific lines of code in the PR, mention @coderabbitai in your review comment - Note: Review comments are made on code diffs or files, not on the PR overview. - Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### CodeRabbit Commands (invoked as PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger a review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai help` to get help. - `@coderabbitai resolve` to resolve all the CodeRabbit review comments. Note: For conversation with the bot, please use the review comments on code diffs or files. ### CodeRabbit Configration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - The JSON schema for the configuration file is available [here](https://coderabbit.ai/integrations/coderabbit-overrides.v2.json). - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json`