Fix crash when the URL of skull profiles is not valid. (#255)

* Fix crash when the URL of skull profiles is not valid.

* Fix crash when the URL of skull profiles is not valid.
This commit is contained in:
ZekerZhayard authored and 33 committed 2023-06-27 14:02:45 +08:00
1 parent 6e9380be49
commit 4ce00d07b5
1 file changed
+2 -1
@@ -2,6 +2,7 @@ package customskinloader.fake;
import java.io.File;
import java.util.Map;
import java.util.Optional;
import com.mojang.authlib.minecraft.MinecraftProfileTexture;
import customskinloader.utils.HttpTextureUtil;
@@ -35,7 +36,7 @@ public class FakeMinecraftProfileTexture extends MinecraftProfileTexture {
@Override
public String getHash() {
return this.info.hash;
return this.info.hash == null ? super.getHash() : this.info.hash;
}
public File getCacheFile() {