From 3af7d75042a4db93f0f5ee33985288982b9dac4f Mon Sep 17 00:00:00 2001 From: Szum123321 Date: Tue, 29 Nov 2022 22:43:16 +0100 Subject: [PATCH] changed built fle names and moved errorErrorHandlingMode to the end of config, so it appears as far down as possible --- build.gradle | 2 +- .../textile_backup/config/ConfigPOJO.java | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) 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())