Skip to content

Endergenic HudRender width too small cause text clipping #185

Description

@THEdarkkman

Hello there,

My issue:
After setting up an endergenic generator, the tooltip with the smartwrench was clipped when displaying the pearl info like pearl arrived while idle.
The text was clipped like so "Pearl arrived whi"
Leaving clipped the most important information.

I tried a bunch of fixes that did not work.

Latest McJtyLib version for 1.21.1 neoforge


My fixes:
The HudRenderHelper.java at line 144 contains a maxWidth parameter that is set by default at 115 pixels.
Expanding that limit to 400 in my case solve that issue. (might be overkill)
Further testing showed no other problem/bugs caused by this modification, tho I alone am not enough to do more extensive testing.

I just learned how to build java using gradle and never done a pull request so I am not comfortable enough to make one just yet.


Anyway, have a wonderful day!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions