diff --git a/build.gradle b/build.gradle index b838b88..34131f2 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 archivesBaseName = project.archives_base_name -version = "${project.mod_version}-${getMcMinor(project.minecraft_version)}" +version = "${project.mod_version}-${project.minecraft_version}" group = project.maven_group repositories { diff --git a/src/main/java/net/szum123321/textile_backup/config/ConfigPOJO.java b/src/main/java/net/szum123321/textile_backup/config/ConfigPOJO.java index cdc4a3f..4cbc4b3 100644 --- a/src/main/java/net/szum123321/textile_backup/config/ConfigPOJO.java +++ b/src/main/java/net/szum123321/textile_backup/config/ConfigPOJO.java @@ -123,14 +123,6 @@ public class ConfigPOJO implements ConfigData { @ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON) public ArchiveFormat format = ArchiveFormat.ZIP; - @Comment(""" - \nThe Strict mode (default) aborts backup creation in case of any problem and deletes created files - Permissible mode keeps partial/damaged backup but won't allow to restore it - Very Permissible mode will skip the verification process. THIS MOST CERTAINLY WILL LEAD TO DATA LOSS OR CORRUPTION - """) - @ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON) - public ErrorHandlingMode errorErrorHandlingMode = ErrorHandlingMode.STRICT; - @Comment("\nMinimal permission level required to run commands\n") @ConfigEntry.Category("Manage") @ConfigEntry.Gui.NoTooltip() @@ -170,6 +162,14 @@ public class ConfigPOJO implements ConfigData { @ConfigEntry.Gui.Tooltip() public String dateTimeFormat = "yyyy.MM.dd_HH-mm-ss"; + @Comment(""" + \nThe Strict mode (default) aborts backup creation in case of any problem and deletes created files + Permissible mode keeps partial/damaged backup but won't allow to restore it + Very Permissible mode will skip the verification process. THIS MOST CERTAINLY WILL LEAD TO DATA LOSS OR CORRUPTION + """) + @ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON) + public ErrorHandlingMode errorErrorHandlingMode = ErrorHandlingMode.STRICT; + @Override public void validatePostLoad() throws ValidationException { if(compressionCoreCountLimit > Runtime.getRuntime().availableProcessors())