mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Bugfix: no quest data at startup = can't find start button = can't add listeners.
This commit is contained in:
@@ -84,6 +84,7 @@ public class ControlQuest {
|
||||
}
|
||||
|
||||
private void addListeners() {
|
||||
if (view.hasPreviousQuest()) {
|
||||
view.getBtnStart().removeMouseListener(madStartGame);
|
||||
view.getBtnStart().addMouseListener(madStartGame);
|
||||
|
||||
@@ -92,7 +93,7 @@ public class ControlQuest {
|
||||
|
||||
view.getPlantCheckBox().removeActionListener(actPlantSelect);
|
||||
view.getPlantCheckBox().addActionListener(actPlantSelect);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/** @return ViewQuest */
|
||||
|
||||
Reference in New Issue
Block a user