diff --git a/build.gradle.kts b/build.gradle.kts index 420b198..e6337f1 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,9 +1,14 @@ plugins { id("java") - id("fabric-loom") version "1.6-SNAPSHOT" + id("fabric-loom") version "1.6.11" id("idea") } +base { + archivesName = "${properties["mod_id"]}-fabric" + version = "${properties["mod_version"]}+mc${properties["minecraft_version"]}" +} + java { withSourcesJar() sourceCompatibility = JavaVersion.valueOf("VERSION_${properties["java_version"]}") @@ -16,11 +21,6 @@ dependencies { modImplementation("net.fabricmc:fabric-loader:${properties["fabric_version"]}") } -base { - archivesName = "${properties["mod_id"]}-fabric" - version = "v${properties["mod_version"]}+mc${properties["minecraft_version"]}" -} - tasks { processResources { filesMatching("fabric.mod.json") { @@ -28,6 +28,10 @@ tasks { } } + compileJava { + options.encoding = "UTF-8" + } + jar { from("LICENSE") { rename { "${it}_${project.properties["mod_id"]}" } diff --git a/gradle.properties b/gradle.properties index 677190b..cea513d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -# Done to increase the memory available to gradle. +# Gradle Properties org.gradle.jvmargs=-Xmx1G org.gradle.parallel=true @@ -10,6 +10,6 @@ fabric_version=0.15.11 # Mod Properties mod_id=skintypefix mod_name=Skin type fix -mod_version=0.1.0-alpha.3 +mod_version=0.1.0-beta.1 mod_license=GPL-3.0-or-later mod_description=Fix wrong skin type for some players. diff --git a/src/main/java/icu/puqns67/skintypefix/mixin/patch/SkinManagerMixin.java b/src/main/java/icu/puqns67/skintypefix/mixin/patch/SkinManagerMixin.java index 9260f05..98b3cd0 100644 --- a/src/main/java/icu/puqns67/skintypefix/mixin/patch/SkinManagerMixin.java +++ b/src/main/java/icu/puqns67/skintypefix/mixin/patch/SkinManagerMixin.java @@ -44,7 +44,7 @@ public class SkinManagerMixin { // If model is defaults to SLIM, and config `skipFixForSlimPlayers` is set to true, // checks are skipped because some skins have bad pixels - if (skinModelOrigin == PlayerSkin.Model.SLIM && SkinTypeFix.CONFIG.skipFixForSlimPlayers) { + if (SkinTypeFix.CONFIG.skipFixForSlimPlayers && skinModelOrigin == PlayerSkin.Model.SLIM) { return; }