naari3 / offers-hud

OffersHUD is a client-side mod which display a list of villager's trading offers as a HUD, without a right-click.
https://www.curseforge.com/minecraft/mc-mods/offershud
MIT License
9 stars 1 forks source link

Displayed a gray square instead of a arrow in 1.18 #4

Closed naari3 closed 2 years ago

naari3 commented 2 years ago

It should display an arrow or an arrow with a cross, but it display a square.

expected (1.17.1)

2022-01-10_07 53 16

actual (>= 1.18)

2022-01-11_23 08 55

naari3 commented 2 years ago
// 1.17.1
void net.minecraft.client.gui.DrawableHelper.drawTexture(MatrixStack matrices, int x, int y, int z, float u, float v, int width, int height, int textureHeight, int textureWidth)

// 1.18.1
void net.minecraft.client.gui.DrawableHelper.drawTexture(MatrixStack matrices, int x, int y, int z, float u, float v, int width, int height, int textureWidth, int textureHeight)

frick

naari3 commented 2 years ago

https://github.com/naari3/offers-hud/commit/dbb74ca0be506214cb8e011ba3dd640a365cac9c