mirror of
https://github.com/simon987/Much-Assembly-Required.git
synced 2025-12-14 07:09:04 +00:00
Moved config file and fixed some warnings
This commit is contained in:
@@ -22,7 +22,7 @@ public class ServerConfiguration {
|
||||
public ServerConfiguration(String file) {
|
||||
try {
|
||||
properties = new Properties();
|
||||
InputStream is = ServerConfiguration.class.getClassLoader().getResourceAsStream("config.properties");
|
||||
InputStream is = new FileInputStream("config.properties");
|
||||
properties.load(is);
|
||||
|
||||
} catch (IOException e) {
|
||||
|
||||
Reference in New Issue
Block a user