mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
Remove empty lines from FlatFile - the plugin will not enable if these are present.
This commit is contained in:
parent
5a3f8ad15f
commit
446b6c107b
@ -577,6 +577,11 @@ public final class FlatfileDatabaseManager implements DatabaseManager {
|
|||||||
HashSet<String> players = new HashSet<String>();
|
HashSet<String> players = new HashSet<String>();
|
||||||
|
|
||||||
while ((line = in.readLine()) != null) {
|
while ((line = in.readLine()) != null) {
|
||||||
|
// Remove empty lines from the file
|
||||||
|
if (line.isEmpty()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Length checks depend on last character being ':'
|
// Length checks depend on last character being ':'
|
||||||
if (line.charAt(line.length() - 1) != ':') {
|
if (line.charAt(line.length() - 1) != ':') {
|
||||||
line = line + ":";
|
line = line + ":";
|
||||||
|
Loading…
Reference in New Issue
Block a user