mirror of
https://github.com/SerendipityR-2022/EndMinecraftPlusV2.git
synced 2024-10-31 20:08:00 +00:00
修复数据文件中空行被读取导致错误
This commit is contained in:
parent
7f7f7bd5b6
commit
d121a4ee0d
@ -17,6 +17,7 @@ public class DataUtil {
|
|||||||
if (dataFile.exists()) {
|
if (dataFile.exists()) {
|
||||||
YamlConfiguration data = YamlConfiguration.loadConfiguration(dataFile);
|
YamlConfiguration data = YamlConfiguration.loadConfiguration(dataFile);
|
||||||
botRegPasswords = data.getStringList("Data");
|
botRegPasswords = data.getStringList("Data");
|
||||||
|
botRegPasswords.remove("");
|
||||||
} else {
|
} else {
|
||||||
botRegPasswords = new ArrayList<>();
|
botRegPasswords = new ArrayList<>();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user