From 76f483e6a910bf5b63ed27474a4255f08d394457 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Thu, 8 Apr 2021 21:26:32 +0200 Subject: [PATCH] Use adequate strings in the mkMap function and in the SnowyConfigScreen class. --- .../main/kotlin/fr/username404/snowygui/config/AddKeyMaps.kt | 4 ++-- .../kotlin/fr/username404/snowygui/config/ConfigScreen.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/main/kotlin/fr/username404/snowygui/config/AddKeyMaps.kt b/common/src/main/kotlin/fr/username404/snowygui/config/AddKeyMaps.kt index 4577515..91fb706 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/config/AddKeyMaps.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/config/AddKeyMaps.kt @@ -9,8 +9,8 @@ object AddKeyMaps { private const val prefix = "snowy" private fun mkMap(translationSuffix: String, key: Int, category: String = "keycategory"): KeyMapping { return KeyMapping( - "$prefix.$translationSuffix", InputConstants.Type.KEYSYM, - key, "$prefix.$category" + "key.$prefix.$translationSuffix", InputConstants.Type.KEYSYM, + key, "category.$prefix.$category" ) } fun getList(): List { diff --git a/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt b/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt index fde2ec5..60f5cab 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt @@ -3,6 +3,6 @@ package fr.username404.snowygui.config import net.minecraft.client.gui.screens.Screen import net.minecraft.network.chat.TranslatableComponent -abstract class SnowyConfigScreen: Screen(TranslatableComponent("snowygui.config")) { // TODO Actual config screen +abstract class SnowyConfigScreen: Screen(TranslatableComponent("screen.snowygui.config")) { // TODO Actual config screen } \ No newline at end of file