Use adequate strings in the mkMap function and in the SnowyConfigScreen class.

This commit is contained in:
Username404-59 2021-04-08 21:26:32 +02:00
parent fd29413768
commit 76f483e6a9
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
2 changed files with 3 additions and 3 deletions

View File

@ -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<KeyMapping> {

View File

@ -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
}