mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-01 08:09:39 +01:00
Don't loop forever if not connected.
This commit is contained in:
parent
c98d298cf1
commit
d41ccf9072
@ -346,7 +346,7 @@ public final class SQLDatabaseManager implements DatabaseManager {
|
||||
|
||||
public PlayerProfile loadPlayerProfile(String playerName, boolean create) {
|
||||
if (!checkConnected()) {
|
||||
return loadPlayerProfile(playerName, false); //Retry if not connected
|
||||
return new PlayerProfile(playerName, create); // return fake profile if not connected
|
||||
}
|
||||
|
||||
PreparedStatement statement = null;
|
||||
|
Loading…
Reference in New Issue
Block a user