Added default settings in case of parseException

This commit is contained in:
François Autin 2021-06-24 14:18:57 +02:00
parent ce1439003b
commit 2e86717121

View File

@ -95,6 +95,14 @@ public class Settings {
System.exit(1); System.exit(1);
} catch (ParseException e) { } catch (ParseException e) {
System.out.println("Invalid config file"); System.out.println("Invalid config file");
rounds = 3;
p1 = "default";
p2 = "default";
width = 800;
height = 600;
fullscreen = false;
hitboxes = false;
stage = "default";
} }
} }