This commit is contained in:
Grimm
2021-11-18 02:27:16 +01:00
387 changed files with 3631 additions and 1106 deletions

View File

@@ -4,7 +4,7 @@
<parent>
<artifactId>forge</artifactId>
<groupId>forge</groupId>
<version>1.6.46-SNAPSHOT</version>
<version>1.6.47-SNAPSHOT</version>
</parent>
<artifactId>forge-gui-mobile</artifactId>

View File

@@ -37,7 +37,7 @@ import java.util.Deque;
import java.util.List;
public class Forge implements ApplicationListener {
public static final String CURRENT_VERSION = "1.6.45.001";
public static final String CURRENT_VERSION = "1.6.46.001";
private static ApplicationListener app = null;
private static Clipboard clipboard;

View File

@@ -90,7 +90,7 @@ public class FDeckViewer extends FScreen {
//fix copying a commander netdeck then importing it again...
if (dName.startsWith("[Commander")||dName.contains("Commander"))
dName = "";
deckList.append(dName == null ? "" : dName + nl + nl);
deckList.append(dName == null ? "" : "Deck: "+dName + nl + nl);
for (DeckSection s : DeckSection.values()){
CardPool cp = deck.get(s);

View File

@@ -528,13 +528,17 @@ public abstract class ItemManager<T extends InventoryItem> extends FContainer im
if (pool == null) {
return;
}
pool.add(item, qty);
if (isUnfiltered()) {
model.addItem(item, qty);
try {
pool.add(item, qty);
if (isUnfiltered()) {
model.addItem(item, qty);
}
List<T> items = new ArrayList<>();
items.add(item);
updateView(false, items);
} catch (Exception e) {
e.printStackTrace();
}
List<T> items = new ArrayList<>();
items.add(item);
updateView(false, items);
}
public void addItems(Iterable<Entry<T, Integer>> itemsToAdd) {