Update TaipanShopGUI.java
fixed to adapt to loanshark
This commit is contained in:
@@ -491,7 +491,7 @@ public class TaipanShopGUI {
|
|||||||
bankButton.setOnAction(new EventHandler<ActionEvent>() {
|
bankButton.setOnAction(new EventHandler<ActionEvent>() {
|
||||||
@Override
|
@Override
|
||||||
public void handle(ActionEvent event) {
|
public void handle(ActionEvent event) {
|
||||||
bankGUI bank = new bankGUI();
|
bankGUI bank = new bankGUI(getPlayer());
|
||||||
bank.initializeBank(stage);
|
bank.initializeBank(stage);
|
||||||
stage.show();
|
stage.show();
|
||||||
}
|
}
|
||||||
@@ -520,7 +520,7 @@ public class TaipanShopGUI {
|
|||||||
loanButton.setOnAction(new EventHandler<ActionEvent>() {
|
loanButton.setOnAction(new EventHandler<ActionEvent>() {
|
||||||
@Override
|
@Override
|
||||||
public void handle(ActionEvent event) {
|
public void handle(ActionEvent event) {
|
||||||
loanSharkGUI loan = new loanSharkGUI();
|
loanSharkGUI loan = new loanSharkGUI(getPlayer());
|
||||||
loan.initializeLoanShark(stage);
|
loan.initializeLoanShark(stage);
|
||||||
stage.show();
|
stage.show();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user