mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 11:15:21 +01:00
Avoid initial ERROR when no markers.yml file (first installation)
This commit is contained in:
parent
f40cc3d6ca
commit
d5354898cb
@ -80,7 +80,8 @@ public class ConfigurationNode implements Map<String, Object> {
|
|||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public boolean load() {
|
public boolean load() {
|
||||||
initparse();
|
initparse();
|
||||||
|
// If no file to read, just return false
|
||||||
|
if (!f.canRead()) { return false; }
|
||||||
FileInputStream fis = null;
|
FileInputStream fis = null;
|
||||||
try {
|
try {
|
||||||
fis = new FileInputStream(f);
|
fis = new FileInputStream(f);
|
||||||
|
Loading…
Reference in New Issue
Block a user