diff --git a/BuildScripts/cos.gradle b/BuildScripts/cos.gradle index 354f8a0..a67869d 100644 --- a/BuildScripts/cos.gradle +++ b/BuildScripts/cos.gradle @@ -29,6 +29,7 @@ String getMcVersion(String filename) { String getKey(String filename) { String name = filename.substring(0, filename.lastIndexOf('.')) + if (name.indexOf('-') == -1) return null; if (filename.endsWith(".json")) return String.format( "versions/%s/%s", @@ -75,6 +76,7 @@ void uploadArtifacts(String shortVersion) { File[] files = dir.listFiles() for (file in files) { String key = getKey(file.getName()) + if (key == null) continue; uploadFile(key, file) String url = cosUrl + key String mcversion = getMcVersion(file.getName()).replace(".", "").toLowerCase() diff --git a/Common/source/customskinloader/fake/FakeSkinBuffer.java b/Common/source/customskinloader/fake/FakeSkinBuffer.java index 6614efb..15cecd3 100644 --- a/Common/source/customskinloader/fake/FakeSkinBuffer.java +++ b/Common/source/customskinloader/fake/FakeSkinBuffer.java @@ -92,7 +92,7 @@ public class FakeSkinBuffer implements net.minecraft.client.renderer.IImageBuffe public String judgeType() { if (this.image == null) return null; - if (((image.getRGBA(55, 20) & B) >>> 24) == 0)//if (55,20) is transparent + if (((image.getRGBA(55 * ratio, 20 * ratio) & B) >>> 24) == 0)//if (55,20) is transparent return "slim"; return "default"; } diff --git a/Fabric/build.properties b/Fabric/build.properties index 95ad61a..2bac5e4 100644 --- a/Fabric/build.properties +++ b/Fabric/build.properties @@ -1,5 +1,5 @@ -minecraft_version=Fabric -minecraft_full_versions=1.14,1.14.1 +minecraft_version=1.14 +minecraft_full_versions=1.14,1.14.1,1.14.2 #forge gradle needs forge version forge_mc_version=1.12.2 forge_version=14.23.5.2768 diff --git a/build.gradle b/build.gradle index 3542536..ead4cca 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,4 @@ apply plugin: 'base' -apply plugin: 'java' ext.configFile = file "build.properties" configFile.withReader {