Fixing #18
This commit is contained in:
parent
3d6d9c2d93
commit
57f702f824
|
@ -10,7 +10,7 @@ loader_version=0.9.3+build.207
|
||||||
fabric_version=0.20.2+build.402-1.16
|
fabric_version=0.20.2+build.402-1.16
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 1.5.2
|
mod_version = 1.5.3
|
||||||
maven_group = org.samo_lego
|
maven_group = org.samo_lego
|
||||||
archives_base_name = simpleauth
|
archives_base_name = simpleauth
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@ public class PlayerCache {
|
||||||
|
|
||||||
if(player != null) {
|
if(player != null) {
|
||||||
if(config.experimental.debugMode)
|
if(config.experimental.debugMode)
|
||||||
logInfo("Creating cache for " + player.getName());
|
logInfo("Creating cache for " + player.getName().asString());
|
||||||
this.lastIp = player.getIp();
|
this.lastIp = player.getIp();
|
||||||
|
|
||||||
this.lastAir = player.getAir();
|
this.lastAir = player.getAir();
|
||||||
|
@ -99,7 +99,7 @@ public class PlayerCache {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.password = passwordElement.getAsString();
|
this.password = passwordElement.getAsString();
|
||||||
this.isRegistered = true;
|
this.isRegistered = !this.password.isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -131,6 +131,6 @@ public class PlayerCache {
|
||||||
this.isAuthenticated = false;
|
this.isAuthenticated = false;
|
||||||
this.loginTries = 0;
|
this.loginTries = 0;
|
||||||
if(config.experimental.debugMode)
|
if(config.experimental.debugMode)
|
||||||
logInfo("Cache created. Registered: " + this.isRegistered + ", hashed password: " + this.password);
|
logInfo("Cache created. Registered: " + this.isRegistered + ", hashed password: " + this.password + ".");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue