bugfix when only using 1 cape and 1.20.6

This commit is contained in:
IIpho3nix
2024-06-17 15:10:22 +03:00
parent 0defba52c7
commit 96f5d0a1e6
4 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
plugins { plugins {
id 'fabric-loom' version '1.2-SNAPSHOT' id 'fabric-loom' version '1.6-SNAPSHOT'
id 'maven-publish' id 'maven-publish'
} }
+4 -4
View File
@@ -3,9 +3,9 @@ org.gradle.jvmargs=-Xmx1G
# Fabric Properties # Fabric Properties
# check these on https://modmuss50.me/fabric.html # check these on https://modmuss50.me/fabric.html
minecraft_version=1.20.4 minecraft_version=1.20.6
yarn_mappings=1.20.4+build.3 yarn_mappings=1.20.6+build.3
loader_version=0.15.3 loader_version=0.15.11
# Mod Properties # Mod Properties
mod_version = 1.0.0 mod_version = 1.0.0
@@ -14,4 +14,4 @@ org.gradle.jvmargs=-Xmx1G
# Dependencies # Dependencies
# check this on https://modmuss50.me/fabric.html # check this on https://modmuss50.me/fabric.html
fabric_version=0.91.3+1.20.4 fabric_version=0.100.0+1.20.6
+1 -1
View File
@@ -1 +1 @@
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
@@ -95,6 +95,9 @@ public class CapesMod implements ModInitializer {
IdentifierUtils.registerBufferedImageTexture(capeCacheIdentifier, img); IdentifierUtils.registerBufferedImageTexture(capeCacheIdentifier, img);
lastCache = cape; lastCache = cape;
} }
} else {
capeCacheIdentifier = null;
lastCache = cape;
} }
} else { } else {
if (cape.endsWith(".gif")) { if (cape.endsWith(".gif")) {