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 GitHub committed 2023-05-07 16:38:36 +08:00
1 parent 8c0cdfb7b5
commit d8d955224d
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() {