Added default settings in case of parseException
This commit is contained in:
parent
ce1439003b
commit
2e86717121
@ -95,6 +95,14 @@ public class Settings {
|
||||
System.exit(1);
|
||||
} catch (ParseException e) {
|
||||
System.out.println("Invalid config file");
|
||||
rounds = 3;
|
||||
p1 = "default";
|
||||
p2 = "default";
|
||||
width = 800;
|
||||
height = 600;
|
||||
fullscreen = false;
|
||||
hitboxes = false;
|
||||
stage = "default";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user