diff --git a/CHANGELOG.md b/CHANGELOG.md index ac3ce5c..3106977 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Forge Recommended Versioning](https://mcforge.readthedocs.io/en/latest/conventions/versioning/). +## [1.21-3.2.1.0] - 2024-08-30 +### Changed +- durability config option is now a text field instead of a slider (Fabric) + ## [1.21-3.2.0.2] - 2024-08-10 ### Fixed - fixed shears damaging in Forge diff --git a/common/src/main/resources/assets/ceramicshears/lang/en_us.json b/common/src/main/resources/assets/ceramicshears/lang/en_us.json index 8327288..29e11e3 100644 --- a/common/src/main/resources/assets/ceramicshears/lang/en_us.json +++ b/common/src/main/resources/assets/ceramicshears/lang/en_us.json @@ -6,6 +6,7 @@ "text.autoconfig.ceramicshears.option.DURABILITY": "Ceramic Shears Durability", "text.autoconfig.ceramicshears.option.DURABILITY.@Tooltip[0]": "§6§lCeramic Shears Durability", "text.autoconfig.ceramicshears.option.DURABILITY.@Tooltip[1]": "Defines the maximum durability of Ceramic Shears.", - "text.autoconfig.ceramicshears.option.DURABILITY.@Tooltip[2]": "§7§oDefault: 179", - "text.autoconfig.ceramicshears.option.DURABILITY.@Tooltip[3]": "§7§o0: deactivates the durability" + "text.autoconfig.ceramicshears.option.DURABILITY.@Tooltip[2]": "§7§o0: deactivates the durability", + "text.autoconfig.ceramicshears.option.DURABILITY.@Tooltip[3]": "§7§oMin: 0; Max: 10000", + "text.autoconfig.ceramicshears.option.DURABILITY.@Tooltip[4]": "§7§oDefault: 179" } \ No newline at end of file diff --git a/fabric/src/main/java/de/cech12/ceramicshears/platform/FabricConfigHelper.java b/fabric/src/main/java/de/cech12/ceramicshears/platform/FabricConfigHelper.java index b6af422..db4b520 100644 --- a/fabric/src/main/java/de/cech12/ceramicshears/platform/FabricConfigHelper.java +++ b/fabric/src/main/java/de/cech12/ceramicshears/platform/FabricConfigHelper.java @@ -14,8 +14,7 @@ @Config(name = Constants.MOD_ID) public class FabricConfigHelper implements ConfigData, IConfigHelper { - @ConfigEntry.Gui.Tooltip(count = 4) - @ConfigEntry.BoundedDiscrete(min = DURABILITY_MIN, max = DURABILITY_MAX) + @ConfigEntry.Gui.Tooltip(count = 5) public int DURABILITY = DURABILITY_DEFAULT; @Override @@ -25,7 +24,8 @@ public void init() { @Override public int getDurability() { - return AutoConfig.getConfigHolder(FabricConfigHelper.class).getConfig().DURABILITY; + int configuredDurability = AutoConfig.getConfigHolder(FabricConfigHelper.class).getConfig().DURABILITY; + return Math.clamp(configuredDurability, DURABILITY_MIN, DURABILITY_MAX); } } diff --git a/gradle.properties b/gradle.properties index 72e05e2..75bac16 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ # Project group=de.cech12.ceramicshears -mod_version=3.2.0.2 +mod_version=3.2.1.0 mod_id=ceramicshears mod_name=Ceramic Shears mod_author=Cech12