mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Actually fix flatfile player loading....
you lied to me @tft_02
This commit is contained in:
parent
eac5d1ee7a
commit
1119d3c17f
@ -470,10 +470,13 @@ public final class FlatfileDatabaseManager implements DatabaseManager {
|
|||||||
// Find if the line contains the player we want.
|
// Find if the line contains the player we want.
|
||||||
String[] character = line.split(":");
|
String[] character = line.split(":");
|
||||||
|
|
||||||
// Compare names because we don't have a valid uuid for that player even if input uuid is not null
|
// Compare names because we don't have a valid uuid for that player even
|
||||||
if (character[41].equalsIgnoreCase("NULL") && !character[0].equalsIgnoreCase(playerName)) {
|
// if input uuid is not null
|
||||||
|
if (character[41].equalsIgnoreCase("NULL")) {
|
||||||
|
if (!character[0].equalsIgnoreCase(playerName)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// If input uuid is not null then we should compare uuids
|
// If input uuid is not null then we should compare uuids
|
||||||
else if ((uuid != null && !character[41].equalsIgnoreCase(uuid.toString())) || (uuid == null && !character[0].equalsIgnoreCase(playerName))) {
|
else if ((uuid != null && !character[41].equalsIgnoreCase(uuid.toString())) || (uuid == null && !character[0].equalsIgnoreCase(playerName))) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user