2 Commits

Author SHA1 Message Date
4b2a150a30 Added translation key speedometer.config.error.missing_cloth.open_config
- Added Swedish and English translations
2025-04-01 02:21:17 +02:00
bd205b5ae6 Updated to 2.6.4
Changed the ClickEvent constructor for the missing cloth error with the new ClickEvent#OpenFile
2025-04-01 02:03:05 +02:00
4 changed files with 13 additions and 12 deletions

View File

@@ -63,11 +63,10 @@ public class Client {
Component
.translatable("speedometer.error.missing_cloth")
.withColor(new Color(190, 0, 0).getRGB())
.append(" ")
.append(Component
.literal("Open Config")
.translatable("speedometer.error.missing_cloth.open_config")
.withStyle(ChatFormatting.UNDERLINE)
.withStyle((style) -> style.withClickEvent(new ClickEvent(ClickEvent.Action.OPEN_FILE, Config.getConfigPath())))
.withStyle((style) -> style.withClickEvent(new ClickEvent.OpenFile(Config.getConfigPath())))
), false);
LOGGER.warn(Component.translatable("speedometer.error.missing_cloth").getString());
}

View File

@@ -68,7 +68,8 @@
"speedometer.config.error.size_outofbounds": "The size is out of bounds 10<=size<=300",
"speedometer.error.missing_cloth": "Missing Cloth Config API for Config Screen",
"speedometer.error.missing_cloth": "Missing Cloth Config API for Config Screen, ",
"speedometer.error.missing_cloth.open_config": "Open Config",
"resourcepack.speedometer.quarter_circle_speedometer": "Quarter circle Speedometer"
}

View File

@@ -68,7 +68,8 @@
"speedometer.config.error.size_outofbounds": "Stolekten är felakting 10<=stolek<=300",
"speedometer.error.missing_cloth": "Saknar Cloth Config API för konfigurationsskärmen",
"speedometer.error.missing_cloth": "Saknar Cloth Config API för konfigurationsskärmen, ",
"speedometer.error.missing_cloth.open_config": "Öppna Config",
"resourcepack.speedometer.quarter_circle_speedometer": "Quarter circle Speedometer"
}

View File

@@ -1,29 +1,29 @@
org.gradle.jvmargs=-Xmx8G
minecraft_version=1.21.4
minecraft_version=1.21.5
archives_base_name=speedometer
mod_version=6.2.3
mod_version=6.2.4
maven_group=me.zacharias
# https://modrinth.com/mod/architectury-api/versions
architectury_version=15.0.3
architectury_version=16.0.3
# https://modrinth.com/mod/cloth-config/versions
cloth_config_version = 17.0.144
cloth_config_version = 18.0.145
# NeoForged Only
# https://neoforged.net/
neoforge_version = 21.4.123
neoforge_version = 21.5.14-beta
# Fabric Only
# https://fabricmc.net/develop/
fabric_loader_version=0.16.10
fabric_api_version=0.119.2
fabric_api_version=0.119.6
# Fabric Only
# https://modrinth.com/mod/modmenu/versions
modmenu_version = 13.0.3
modmenu_version = 14.0.0-rc.2
# Version of the org.json json library
json_version = 20240303