Skip to content

Commit

Permalink
Xmage 1.4.16v3
Browse files Browse the repository at this point in the history
  • Loading branch information
LevelX2 committed Oct 9, 2016
1 parent 27acaa5 commit 2e1f8c0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private static boolean cardViewEquals(CardView a, CardView b) {
if (!a.getRarity().equals(b.getRarity())) {
return false;
}
if (!a.getCardNumber().equals(b.getCardNumber())) {
if (a.getCardNumber() != null && !a.getCardNumber().equals(b.getCardNumber())) {
return false;
}
// Expansion set code, with null checking:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ public BufferedImage apply(String key) {
try {

boolean usesVariousArt = false;
LOGGER.info("Key load to CACHE: " + key);
if (key.matches(".*#usesVariousArt.*")) {
usesVariousArt = true;
key = key.replace("#usesVariousArt", "");
Expand Down Expand Up @@ -130,9 +129,7 @@ public BufferedImage apply(String key) {
}
} else {
BufferedImage image = loadImage(file);
LOGGER.info("Basic image: @" + Integer.toHexString(image.hashCode()));
image = getWizardsCard(image);
LOGGER.info("Wizard image: @" + Integer.toHexString(image.hashCode()));
return image;
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion Mage.Common/src/mage/utils/MageVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class MageVersion implements Serializable, Comparable<MageVersion> {
public final static int MAGE_VERSION_MAJOR = 1;
public final static int MAGE_VERSION_MINOR = 4;
public final static int MAGE_VERSION_PATCH = 16;
public final static String MAGE_VERSION_MINOR_PATCH = "v2";
public final static String MAGE_VERSION_MINOR_PATCH = "v3";
public final static String MAGE_VERSION_INFO = "";

private final int major;
Expand Down
3 changes: 1 addition & 2 deletions Mage/src/main/java/mage/cards/repository/CardRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
import java.util.Set;
import java.util.TreeSet;
import java.util.concurrent.Callable;

import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SetType;
Expand All @@ -65,7 +64,7 @@ public enum CardRepository {
// raise this if db structure was changed
private static final long CARD_DB_VERSION = 47;
// raise this if new cards were added to the server
private static final long CARD_CONTENT_VERSION = 62;
private static final long CARD_CONTENT_VERSION = 63;

private Dao<CardInfo, Object> cardDao;
private Set<String> classNames;
Expand Down

0 comments on commit 2e1f8c0

Please sign in to comment.