Update TaipanShopGUI.java

fixed to adapt to loanshark
This commit is contained in:
Vikramb987
2019-03-10 21:15:38 -06:00
committed by GitHub
parent 13f30b681a
commit 0c5317cf6f

View File

@@ -491,7 +491,7 @@ public class TaipanShopGUI {
bankButton.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
bankGUI bank = new bankGUI();
bankGUI bank = new bankGUI(getPlayer());
bank.initializeBank(stage);
stage.show();
}
@@ -520,7 +520,7 @@ public class TaipanShopGUI {
loanButton.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
loanSharkGUI loan = new loanSharkGUI();
loanSharkGUI loan = new loanSharkGUI(getPlayer());
loan.initializeLoanShark(stage);
stage.show();
}