From c638d8328dae2fc78f681b8f86a9bc765d6abd18 Mon Sep 17 00:00:00 2001 From: Onako2 <79749977+Onako2@users.noreply.github.com> Date: Wed, 13 Nov 2024 22:31:34 +0100 Subject: [PATCH] Fix window title, improve compatibility checking --- gradle.properties | 2 +- src/client/java/rs/onako2/iwie/ClientInit.java | 7 ++++--- src/main/resources/fabric.mod.json | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gradle.properties b/gradle.properties index 7ac8413..f4dd471 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,7 +7,7 @@ minecraft_version=1.21.1 yarn_mappings=1.21.1+build.3 loader_version=0.16.7 # Mod Properties -mod_version=2.4.0 +mod_version=2.4.1 maven_group=rs.onako2 archives_base_name=i-want-it-earlier # Dependencies diff --git a/src/client/java/rs/onako2/iwie/ClientInit.java b/src/client/java/rs/onako2/iwie/ClientInit.java index 2e554f9..e31ff9d 100644 --- a/src/client/java/rs/onako2/iwie/ClientInit.java +++ b/src/client/java/rs/onako2/iwie/ClientInit.java @@ -9,6 +9,7 @@ import net.minecraft.client.render.RenderLayer; import net.minecraft.client.render.entity.model.EntityModelLayer; import net.minecraft.util.Identifier; +import org.apache.commons.lang3.SystemUtils; import rs.onako2.iwie.entity.CreakingEntityRenderer; import rs.onako2.iwie.entity.CreakingModel; @@ -43,9 +44,9 @@ public void onInitializeClient() { BlockColors blockColors = client.getBlockColors(); blockColors.registerColorProvider(new PaleLeavesColorProvider(), Init.PALE_OAK_LEAVES); - /*if (SystemUtils.IS_OS_WINDOWS) { + if (SystemUtils.IS_OS_WINDOWS) { client.getWindow().setTitle("https://modrinth.com/mod/i-want-it-earlier"); - }*/ + } }); @@ -54,4 +55,4 @@ public void onInitializeClient() { EntityModelLayerRegistry.registerModelLayer(MODEL_CREAKING_LAYER, CreakingModel::getTexturedModelData); } -} \ No newline at end of file +} diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index f2cea27..28eaf5e 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -37,7 +37,7 @@ }, "depends": { "fabricloader": ">=0.14.22", - "minecraft": ">=1.21", + "minecraft": ">=1.21 <=1.21.1", "java": ">=21", "fabric-api": ">=0.78" }