fix(config-ui-tiny): use translation prefix again in preset translatable. Where was this done previously?
ci/woodpecker/push/docs Pipeline was successful Details
ci/woodpecker/push/jfmod Pipeline was successful Details

This commit is contained in:
Johannes Frohnmeyer 2023-12-07 20:21:39 +01:00
parent b9e02d5fd5
commit 2769824ff7
Signed by: Johannes
GPG Key ID: E76429612C2929F4
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ public class PresetsScreen extends Screen {
super.init();
PresetListWidget list = new PresetListWidget(this.client, this.width, this.height, 32, 25);
for (Map.Entry<String, Runnable> entry : config.getPresets().entrySet()) {
list.addButton(ButtonWidget.builder(Text.translatable(entry.getKey()),
list.addButton(ButtonWidget.builder(Text.translatable(config.getTranslationPrefix() + entry.getKey()),
button -> {
LibJf.LOGGER.info("Preset selected: " + entry.getKey());
entry.getValue().run();