mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-28 11:16:08 +00:00
Fix gradle upload
This commit is contained in:
1 parent
3bee9281ec
commit
2adbc25f69
4 files changed
+5
-4
No files matched your search
@@ -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";
|
||||
}
|
||||
|
||||
@@ -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,5 +1,4 @@
|
||||
apply plugin: 'base'
|
||||
apply plugin: 'java'
|
||||
|
||||
ext.configFile = file "build.properties"
|
||||
configFile.withReader {
|
||||
|
||||
Reference in new issue
Block a user