mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-02 01:46:45 +01:00
Fix f49be46c
- added code to wrong part of file
This commit is contained in:
parent
cb8be8b82f
commit
82f8022f54
@ -116,10 +116,6 @@ public final class FlatfileDatabaseManager implements DatabaseManager {
|
||||
String line = "";
|
||||
|
||||
while ((line = in.readLine()) != null) {
|
||||
// Length checks depend on last character being ':'
|
||||
if (line.charAt(line.length() - 1) != ':') {
|
||||
line = line + ":";
|
||||
}
|
||||
String[] character = line.split(":");
|
||||
String name = character[0];
|
||||
long lastPlayed;
|
||||
@ -587,6 +583,10 @@ public final class FlatfileDatabaseManager implements DatabaseManager {
|
||||
String line = "";
|
||||
|
||||
while ((line = in.readLine()) != null) {
|
||||
// Length checks depend on last character being ':'
|
||||
if (line.charAt(line.length() - 1) != ':') {
|
||||
line = line + ":";
|
||||
}
|
||||
String[] character = line.split(":");
|
||||
|
||||
// If they're valid, rewrite them to the file.
|
||||
|
Loading…
Reference in New Issue
Block a user