From a9242c0c853ff0b7fb27dea848cee1be39e01798 Mon Sep 17 00:00:00 2001 From: Jani Haiko Date: Sun, 16 Jul 2023 18:55:23 +0300 Subject: [PATCH] Add support for Forge 44.x --- build.gradle | 2 +- src/main/java/fi/kissakala/pishockmc/Config.java | 2 +- src/main/resources/META-INF/mods.toml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index e91cfe8..23235c3 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ plugins { id 'net.minecraftforge.gradle' version '5.1.+' } -version = '1.19-1.1.0.0' +version = '1.19-1.1.0.1' group = 'fi.kissakala' base.archivesName = 'pishockmc' diff --git a/src/main/java/fi/kissakala/pishockmc/Config.java b/src/main/java/fi/kissakala/pishockmc/Config.java index b18126a..24d7705 100644 --- a/src/main/java/fi/kissakala/pishockmc/Config.java +++ b/src/main/java/fi/kissakala/pishockmc/Config.java @@ -35,7 +35,7 @@ private static ForgeConfigSpec.Builder build(final ForgeConfigSpec.Builder build .defineEnum("mode", PiShockAPI.OP_CODE.Shock, PiShockAPI.OP_CODE.values()); intensity = builder - .comment("Set the shock/vibration/beep intensity range", "Ranges from lowest to highest are: 1 - 20, 21 - 40, 41 - 60, 61 - 80, 80 - 100") + .comment("Set the shock/vibration/beep intensity range", "The percentage ranges from lowest to highest are: 1 - 20, 21 - 40, 41 - 60, 61 - 80, 80 - 100") .defineEnum("intensity_range", INTENSITY_SETTING_VALUE.MINIMAL, INTENSITY_SETTING_VALUE.values()); // TODO: Make the punishment (duration, intensity etc.) configurable diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml index 29722e2..123bcb2 100644 --- a/src/main/resources/META-INF/mods.toml +++ b/src/main/resources/META-INF/mods.toml @@ -1,11 +1,11 @@ modLoader="javafml" -loaderVersion="[45,)" +loaderVersion="[44,)" license="MIT" issueTrackerURL="https://github.com/ojaha065/PiShockForMC/issues" [[mods]] modId="pishockmc" -version="1.19-1.1.0.0" +version="1.19-1.1.0.1" displayName="PiShock for Minecraft" #updateJSONURL="https://change.me.example.invalid/updates.json" # TODO @@ -32,7 +32,7 @@ displayTest="IGNORE_ALL_VERSION" # This is a client-only mod [[dependencies.pishockmc]] modId="forge" mandatory=true - versionRange="[45,)" + versionRange="[44,)" ordering="AFTER" side="BOTH" [[dependencies.pishockmc]]