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
65 stars 8 forks source link

Hey Wiki settings don't work #69

Closed egogowa closed 3 months ago

egogowa commented 3 months ago

Steps to reproduce

  1. Open the game. 2. Go to the mod menu. 3. Press the Hey Wiki settings option button. 4. The option button does not work

Describe the bug

Option button does not work, giving the following error: Java.lang.IllegalStateException:Unexpected value: Automatic

Expected behavior

Option button works as expected

Mod version

1.5.7

Game version

1.21

Operating system

Windows 10

Mod loader

Fabric

Mod loader version

0.15.11-1.21

Relevant log/crash report output

No response

How frustrating is this bug?

5

Additional information and screenshots

Other mods used: sodium-fabric-0.5.11, placeholder-api-2.4.1, modmenu-11.0.1, lithium-fabric-mc1.21-0.12.7, cloth-config-15.0.128-fabric, architectury-13.0.6-fabric

Screenshot: (external text in Russian) 2024-08-20_101628

Dianliang233 commented 3 months ago

nice

Dianliang233 commented 3 months ago

@egogowa Please try to delete your .minecraft/config/heywiki.json, start the game, change a few settings and let me know if it works for you.

egogowa commented 3 months ago

Yeah, it worked, but unfortunately only once. After game restart the options button is inactive again, however, all previously changed settings are saved I have to say that the options were also active the first time I ran with the mod, but not the next. But I didn't change anything right away

Markus-Rost commented 3 months ago

Can you show the content of your .minecraft/config/heywiki.json when it's not working?

egogowa commented 3 months ago

heywiki.json

egogowa commented 3 months ago

meh

{ "requiresConfirmation": false, "language": "en", "zhVariant": "Автоматически", "raycastReach": 5.2, "raycastAllowFluid": false }

Markus-Rost commented 3 months ago

1.6.1 should have fixed that issue, can you try with the updated version of the mod?

egogowa commented 3 months ago

I installed this as soon as I noticed it during testing. Zero effect 😅. The sent json already relates to 1.6.1

Markus-Rost commented 3 months ago

Did the issue re-appear after deleting .minecraft/config/heywiki.json and starting with 1.6.1 ? It wouldn't fix the issue on already broken configs, but it should prevent the wrong value being stored again.

egogowa commented 3 months ago

Yeah, I didn't think to delete the old json right away. Deleted it and it worked. Thanks a lot!

Dianliang233 commented 3 months ago

seems to be fixed, please open another issue if you encounter any more problems. Thanks!