Polyfrost / OneConfig

Next generation configuration library for Minecraft
https://polyfrost.org/projects/oneconfig
Other
232 stars 23 forks source link

Keybind option in config redundant #318

Closed DontActuallyKnow closed 6 months ago

DontActuallyKnow commented 8 months ago

Original reporter & ticket id

No response

Category

Gameplay

Bug description

When using Keybind element in config code, only uses the default option supplied. Even when changed in the config in-game it uses the original keybind and the new one is not working.

Steps to reproduce

Create Keybind element in config Set a default value Default value should work Change the keybind INGAME Default value still works, new value doesn't

Anything else?

No response

Wyvest commented 8 months ago

Original reporter & ticket id

No response

Category

Gameplay

Bug description

When using Keybind element in config code, only uses the default option supplied. Even when changed in the config in-game it uses the original keybind and the new one is not working.

Steps to reproduce

Create Keybind element in config Set a default value Default value should work Change the keybind INGAME Default value still works, new value doesn't

Anything else?

No response

can you send a snippet of your config's keybind

DontActuallyKnow commented 8 months ago

image_2024-01-30_071940254 image_2024-01-30_072009799 image_2024-01-30_072037089 Thats everything I think needed

Wyvest commented 6 months ago

image_2024-01-30_071940254 image_2024-01-30_072009799 image_2024-01-30_072037089 Thats everything I think needed

I dont remember if I replied to this before but registerKeybind should be after initialize (iirc). Sorry for the late response.