mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
fixing restart issue and hand crash
This commit is contained in:
@@ -182,6 +182,7 @@ public class MatchController {
|
||||
*/
|
||||
public void replayRound() {
|
||||
gamesPlayed.remove(gamesPlayed.size() - 1);
|
||||
startRound();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -40,8 +40,6 @@ public class VHand implements IVDoc<CHand> {
|
||||
private final EDocID docID;
|
||||
private final DragTab tab = new DragTab("Your Hand");
|
||||
|
||||
// Other fields
|
||||
private Player player = null;
|
||||
|
||||
// Top-level containers
|
||||
private final JScrollPane scroller = new JScrollPane();
|
||||
@@ -72,7 +70,7 @@ public class VHand implements IVDoc<CHand> {
|
||||
|
||||
hand.setOpaque(false);
|
||||
|
||||
control = new CHand(player, this);
|
||||
control = new CHand(player0, this);
|
||||
}
|
||||
|
||||
//========= Overridden methods
|
||||
|
||||
Reference in New Issue
Block a user