Add Charset argument for reading File lines in ServerManager, ideally to prevent compilation issues with other java versions.
This commit is contained in:
parent
e8d5d50162
commit
afb0b1cfdf
@ -1,6 +1,7 @@
|
||||
package mineplex.serverdata.servers;
|
||||
|
||||
import java.io.File;
|
||||
import java.nio.charset.Charset;
|
||||
import java.nio.file.Files;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
@ -90,7 +91,7 @@ public class ServerManager
|
||||
|
||||
if (configFile.exists())
|
||||
{
|
||||
List<String> lines = Files.readAllLines(configFile.toPath());
|
||||
List<String> lines = Files.readAllLines(configFile.toPath(), Charset.defaultCharset());
|
||||
|
||||
ConnectionData master = deserializeConnection(lines.get(0));
|
||||
List<ConnectionData> slaves = new ArrayList<ConnectionData>();
|
||||
|
Loading…
Reference in New Issue
Block a user