mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-18 21:59:17 +00:00
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:
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() {
|
||||
|
||||
Reference in new issue
Block a user