diff --git a/gradle.properties b/gradle.properties index 9540256..441c091 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,7 +10,7 @@ loader_version=0.9.3+build.207 fabric_version=0.20.2+build.402-1.16 # Mod Properties -mod_version = 1.5.2 +mod_version = 1.5.3 maven_group = org.samo_lego archives_base_name = simpleauth diff --git a/src/main/java/org/samo_lego/simpleauth/storage/PlayerCache.java b/src/main/java/org/samo_lego/simpleauth/storage/PlayerCache.java index 426bbf2..b1df3b0 100644 --- a/src/main/java/org/samo_lego/simpleauth/storage/PlayerCache.java +++ b/src/main/java/org/samo_lego/simpleauth/storage/PlayerCache.java @@ -63,7 +63,7 @@ public class PlayerCache { if(player != null) { if(config.experimental.debugMode) - logInfo("Creating cache for " + player.getName()); + logInfo("Creating cache for " + player.getName().asString()); this.lastIp = player.getIp(); this.lastAir = player.getAir(); @@ -99,7 +99,7 @@ public class PlayerCache { } else { this.password = passwordElement.getAsString(); - this.isRegistered = true; + this.isRegistered = !this.password.isEmpty(); } @@ -131,6 +131,6 @@ public class PlayerCache { this.isAuthenticated = false; this.loginTries = 0; if(config.experimental.debugMode) - logInfo("Cache created. Registered: " + this.isRegistered + ", hashed password: " + this.password); + logInfo("Cache created. Registered: " + this.isRegistered + ", hashed password: " + this.password + "."); } }