Skip to content

Commit

Permalink
hhave to fix card cache
Browse files Browse the repository at this point in the history
  • Loading branch information
nicol authored and nicol committed Dec 10, 2024
1 parent 79ca73f commit adcf1f6
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,6 @@ private Boolean readAsBoolean(JsonObject obj , String k)

private MTGCard generateCard(JsonObject obj, boolean loadMeld) throws ExecutionException {

var mc= cacheCards.get(obj.get(ID).getAsString(), new Callable<MTGCard>(){
@Override
public MTGCard call() throws Exception {
var mc = new MTGCard();
mc.setId(obj.get(ID).getAsString());
mc.setScryfallId(mc.getId());
Expand Down Expand Up @@ -503,11 +500,7 @@ public MTGCard call() throws Exception {
}

postTreatmentCard(mc);


return mc;
}
});

notify(mc);
return mc;

Expand Down

0 comments on commit adcf1f6

Please sign in to comment.