Bug Correction, Load Button linked
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Debucquoy Anthony 2023-05-18 19:24:01 +02:00
parent a726019b18
commit 8c8dacadd0
Signed by: tonitch
GPG Key ID: A78D6421F083D42E

View File

@ -78,7 +78,7 @@ public class MenuAccueil extends StackPane {
SelectLevel.setOnAction(event -> Controller.switchRoot(new MenuLevel(1)));
LoadLvl.setOnAction(event -> {
try {
FileParserFactory.loadMapFromFile(new File("save.slevel"));
Controller.switchRoot(new GameUI(FileParserFactory.loadMapFromFile(new File("save.slevel"))));
} catch (IOException e) {
throw new RuntimeException(e);
}