mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
* Some minor adjustements/changes.
This commit is contained in:
parent
28d46e2a95
commit
ed501cad21
15 changed files with 44 additions and 16 deletions
|
|
@ -1132,6 +1132,8 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
|||
public static void main(final String args[]) {
|
||||
// Workaround for #451
|
||||
System.setProperty("java.util.Arrays.useLegacyMergeSort", "true");
|
||||
logger.info("Starting MAGE client version " + version);
|
||||
logger.info("Logging level: " + logger.getEffectiveLevel());
|
||||
|
||||
startTime = System.currentTimeMillis();
|
||||
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@ public class CombatManager {
|
|||
|
||||
private static CombatManager combatManager;
|
||||
|
||||
private Map<UUID, Integer> combatAttackers = new HashMap<UUID, Integer>();
|
||||
private Map<UUID, Integer> combatBlockers = new HashMap<UUID, Integer>();
|
||||
private final Map<UUID, Integer> combatAttackers = new HashMap<>();
|
||||
private final Map<UUID, Integer> combatBlockers = new HashMap<>();
|
||||
private int globalBlockersCount; // we need global counter as there are several combat groups
|
||||
|
||||
public static CombatManager getInstance() {
|
||||
|
|
|
|||
|
|
@ -192,7 +192,10 @@ public class GuiDisplayUtil {
|
|||
buffer.append("pt;margin:0px 1px 0px 1px'>");
|
||||
buffer.append("<table cellspacing=0 cellpadding=0 border=0 width='100%'>");
|
||||
buffer.append("<tr><td valign='top'><b>");
|
||||
buffer.append(card.getDisplayName()).append(" [").append(card.getId().toString().substring(0,3)).append("]");
|
||||
buffer.append(card.getDisplayName());
|
||||
if (card.isGameObject()) {
|
||||
buffer.append(" [").append(card.getId().toString().substring(0,3)).append("]");
|
||||
}
|
||||
buffer.append("</b></td><td align='right' valign='top' style='width:");
|
||||
buffer.append(symbolCount * 11 + 1);
|
||||
buffer.append("px'>");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue