mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Merged changes from trunk to GuiRefactoring: 27198-27235 (mobile and android projects)
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<packaging.type>jar</packaging.type>
|
||||
<build.min.memory>-Xms128m</build.min.memory>
|
||||
<build.max.memory>-Xmx2048m</build.max.memory>
|
||||
<alpha-version>1.5.26.003</alpha-version>
|
||||
<alpha-version>1.5.26.004</alpha-version>
|
||||
</properties>
|
||||
|
||||
<parent>
|
||||
|
||||
@@ -37,7 +37,7 @@ import forge.util.FileUtil;
|
||||
import forge.util.Utils;
|
||||
|
||||
public class Forge implements ApplicationListener {
|
||||
public static final String CURRENT_VERSION = "1.5.26.003";
|
||||
public static final String CURRENT_VERSION = "1.5.26.004";
|
||||
|
||||
private static final ApplicationListener app = new Forge();
|
||||
private static Clipboard clipboard;
|
||||
|
||||
@@ -255,8 +255,7 @@ public class CardImageRenderer {
|
||||
g.drawImage(image, x + (w - iconSize) / 2, y + (h - iconSize) / 2, iconSize, iconSize);
|
||||
}
|
||||
else {
|
||||
if (card.getRules() == null) { return; } //this can happen with certain tokens
|
||||
String text = card.getRules().getOracleText();
|
||||
String text = card.getOracleText();
|
||||
if (StringUtils.isEmpty(text)) { return; }
|
||||
|
||||
text = text.replace("\\n", "\n"); //replace new line placeholders with actual new line characters
|
||||
|
||||
@@ -216,10 +216,7 @@ public class FControl {
|
||||
Player p = getCurrentPlayer();
|
||||
|
||||
if (p != null) {
|
||||
p.getController().autoPassUntil(PhaseType.CLEANUP);
|
||||
if (!inputProxy.passPriority()) {
|
||||
p.getController().autoPassCancel();
|
||||
}
|
||||
inputProxy.passPriority(p, PhaseType.CLEANUP);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user