sp614x / optifine

1.77k stars 420 forks source link

Custom GUI textures issues. #7671

Open Evanbeer opened 4 weeks ago

Evanbeer commented 4 weeks ago

Description of Issue

The bug works as following, the texture is only applied to the gui if the gui is openned by the actual block it displays. This bug also continues with the heigth paremeter and opening the gui from somewhere else using plugins or packets. Like listed in this very old bug report: https://github.com/sp614x/optifine/issues/1204 So it seems optifine doesn't actually use the inventory location but the location you last clicked on. The custom optifine gui's are amazingly easy if they were to work, but opening the gui with anything other than the actual inventory you're trying to display doesn't work.

Steps to Reproduce

Create a custom gui texture in a texture pack for an container for this example a chest, then using packets or plugins make a command or action to open a virtual chest. The texture wont apply to this virtual chest unless you last interacted with the container you want to display (In this example a chest inventory)

OptiFine Version

I believe this issue is cosistent in all versions but i'm in 1.19.4 optifine.

Installation Method

Standalone installer

F3 Debug Screenshot

image

Prior Testing