opekope2 / OptiGUI

Blazing fast custom GUI textures on Fabric and Quilt with built-in OptiFine custom GUI resource pack support
https://opekope2.dev/OptiGUI/
MIT License
23 stars 9 forks source link

[BUG] OptiGUI doesn't work, if container is opened via Spectator Mode #76

Open ViTulyankin opened 1 year ago

ViTulyankin commented 1 year ago

Is there an existing issue for this?

Expected Behavior

Spectator Mode is working the same way as Survival and Creative

Actual Behavior

When container is opened in Spectator Mode, neither OptiGUI nor Optifine format textures apply

image

image

Steps To Reproduce

Open any container that is using Opifine or OptiGUI format using Spectator Mode

Loader and its version

Quilt loader 0.20.2 1.20.1

OptiGUI version

2.2.0-alpha.1

Behavior difference

Anything else

No response

opekope2 commented 1 year ago

Indeed, that doesn't work. It's because of how Fabric API works. I may need to hook it myself. Ironic.