diff --git a/Common/src/main/java/customskinloader/utils/MinecraftUtil.java b/Common/src/main/java/customskinloader/utils/MinecraftUtil.java index e8d39bd..2a17ebf 100644 --- a/Common/src/main/java/customskinloader/utils/MinecraftUtil.java +++ b/Common/src/main/java/customskinloader/utils/MinecraftUtil.java @@ -85,7 +85,6 @@ public static boolean isLanServer() { } 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()); } } diff --git a/Forge/V1/src/main/java/customskinloader/forge/ForgeTweaker.java b/Forge/V1/src/main/java/customskinloader/forge/ForgeTweaker.java index 8d127ca..6f052b1 100644 --- a/Forge/V1/src/main/java/customskinloader/forge/ForgeTweaker.java +++ b/Forge/V1/src/main/java/customskinloader/forge/ForgeTweaker.java @@ -33,6 +33,9 @@ public ForgeTweaker() throws Exception { @Override public void acceptOptions(List args, File gameDir, File assetsDir, String profile) { + if (gameDir == null) { + gameDir = new File("."); + } LogManager.setLogFile(gameDir.toPath().resolve("CustomSkinLoader/CustomSkinLoader.log")); } diff --git a/build.properties b/build.properties index dc062b1..89cc7c7 100644 --- a/build.properties +++ b/build.properties @@ -1,3 +1,3 @@ name=CustomSkinLoader group=customskinloader -version=14.20 +version=14.20.1