Team-Resourceful / Resourceful-Config

MIT License
4 stars 1 forks source link

[Bug]: Buttons translations are broken #18

Open costantino2000 opened 3 weeks ago

costantino2000 commented 3 weeks ago

Bug Description

For some reason the translations do not work for config buttons. They work normally for config entries though.

Here is an example: @ConfigButton(text = "Button text", translation = "Translation id in the lang file", target = "Button target", position = Position.BEFORE) public static void function() { do stuff }

Even though the translation id is correct it won't take the string from the lang file, and will keep using the default one specified in the "text" parameter.

How to Reproduce?

No response

Expected Behavior

No response

Version

2.5.1

Mod Loader Version

1.20.6 - 0.15.11

Mod Loader

Fabric

Logs or additional context

No response