mc-wiki / minecraft-mod-heywiki

A Minecraft mod that allows you to press H (customizable) to open the Minecraft Wiki page of the block/item/entity you're aiming at.
https://minecraft.wiki/MCW:MOD
GNU Lesser General Public License v3.0
29 stars 5 forks source link

Compatibility Issue with Iris Shaders #31

Closed NyteWL closed 1 month ago

NyteWL commented 1 month ago

Steps to reproduce

  1. Install Fabric Loader and API
  2. Install Hey Wiki and its dependencies, Iris Shaders, and Sodium
  3. Start the game
  4. Put a shader pack with lang files in shaderpacks folder and load it
  5. Open the shader pack settings screen and check for the error

Describe the bug

Hey Wiki seems to cause Iris to be unable to read the shader pack's lang file: image0 chinese screen: image2

Expected behavior

Normally, the shader pack settings screen should look like this: image chinese: image1

Mod version

1.4.1

Game version

1.20.4

Operating system

Windows 10

Mod loader

Fabric

Mod loader version

0.15.11

Relevant log/crash report output

https://mclo.gs/v4svZFt

How frustrating is this bug?

No response

Additional information and screenshots

No response

Dianliang233 commented 1 month ago

Relates to this mixin to TranslationStorage (yarn): https://github.com/IrisShaders/Iris/blob/1.20.6/src/main/java/net/irisshaders/iris/mixin/MixinClientLanguage.java

Edit: I think I can pinpoint to the exact line: https://github.com/IrisShaders/Iris/blob/48b6f2b70a6f27739b8c164fe2af0e50cc451cf0/src/main/java/net/irisshaders/iris/mixin/MixinClientLanguage.java#L61. Not sure how to fix