Tech Reborn

Tech Reborn

34M Downloads

GUIs do not render correctly when using HD resource packs

TheLMiffy1111 opened this issue ยท 2 comments

commented

Describe the bug
GUIs do not render correctly when using HD resource packs.

Steps to Reproduce

  1. Install and load any HD resource pack with HD Reborn Core textures.
  2. Open any Tech Reborn machine's GUI

Screenshots
Using the BDcraft Reborn Core patch (https://bdcraft.net/community/viewtopic.php?t=8670) as an example:
Image

Environment

  • Minecraft: 1.20.1, 1.20.2, 1.20.4, 1.21.1, 1.21.4, 1.21.5

Additional context
This is caused by GuiSprites.drawSprite directly using the sprite width and height:

public static void drawSprite(DrawContext drawContext, SpriteIdentifier spriteIdentifier, int x, int y) {
final Sprite sprite = GuiBase.getSprite(spriteIdentifier);
drawContext.drawSprite(
x,
y,
0,
sprite.getContents().getWidth(),
sprite.getContents().getHeight(),
sprite
);
}

commented

Thank you for reporting this bug.
You can download a preview build to fix it:
https://github.com/TechReborn/TechReborn/actions/runs/14411792280
(Download Artifacts and unzip the TechreBorn-5.12.5.jar MC 1.21.4)