Skip to content

Commit

Permalink
resolve deck problem
Browse files Browse the repository at this point in the history
  • Loading branch information
hm3623851 committed Jul 9, 2021
1 parent f926080 commit dbe374f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/main/java/controller/DeckController.java
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,6 @@ public void handle(DragEvent dragEvent) {
if (bool) {
mainDeckHashMap.put(rectangle, mainDeckHashMap.get(sourceRectangle));
mainDeckHashMap.remove(sourceRectangle);
deck.deleteCard(mainDeckHashMap.get(rectangle).getCardName(), false);
deck.addCard(mainDeckHashMap.get(rectangle).getCardName(), false,
User.getUserByUsername(username));
} else {
mainDeckHashMap.put(rectangle, sideDeckHashMap.get(sourceRectangle));
sideDeckHashMap.remove(sourceRectangle);
Expand All @@ -340,9 +337,6 @@ public void handle(DragEvent dragEvent) {
} else {
sideDeckHashMap.put(rectangle, sideDeckHashMap.get(sourceRectangle));
sideDeckHashMap.remove(sourceRectangle);
deck.deleteCard(sideDeckHashMap.get(rectangle).getCardName(), true);
deck.addCard(sideDeckHashMap.get(rectangle).getCardName(), true,
User.getUserByUsername(username));
}
}
sourceRectangle.setAccessibleText("null");
Expand Down

0 comments on commit dbe374f

Please sign in to comment.