mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-28 00:55:44 +00:00
Fix NullPointerException (#299)
This commit is contained in:
1 parent
18d31bed8f
commit
3e4b06f5d1
3 files changed
+5
-3
No files matched your search
@@ -85,7 +85,6 @@ public class MinecraftUtil {
|
||||
}
|
||||
|
||||
public static String getCredential(GameProfile profile) {
|
||||
return (profile == null || profile.hashCode() == 0) ? null :
|
||||
(profile.getId() == null ? profile.getName() : String.format("%s-%s", profile.getName(), profile.getId()));
|
||||
return profile == null ? null : String.format("%s-%s", profile.getName(), profile.getId());
|
||||
}
|
||||
}
|
||||
@@ -33,6 +33,9 @@ public class ForgeTweaker implements ITweaker {
|
||||
|
||||
@Override
|
||||
public void acceptOptions(List<String> args, File gameDir, File assetsDir, String profile) {
|
||||
if (gameDir == null) {
|
||||
gameDir = new File(".");
|
||||
}
|
||||
LogManager.setLogFile(gameDir.toPath().resolve("CustomSkinLoader/CustomSkinLoader.log"));
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
name=CustomSkinLoader
|
||||
group=customskinloader
|
||||
version=14.20
|
||||
version=14.20.1
|
||||
Reference in new issue
Block a user