Fix gradle upload

This commit is contained in:
Alexander Xia committed 2019-05-23 23:47:33 +08:00
1 parent 3bee9281ec
commit 2adbc25f69
4 files changed
+5 -4

No files matched your search

+2
View File
@@ -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()
@@ -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";
}
+2 -2
View File
@@ -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
-1
View File
@@ -1,5 +1,4 @@
apply plugin: 'base'
apply plugin: 'java'
ext.configFile = file "build.properties"
configFile.withReader {