mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Merge branch 'keys' into 'master'
Fix ImageKeys again See merge request core-developers/forge!5266
This commit is contained in:
@@ -236,6 +236,9 @@ public class ComputerUtilCost {
|
||||
if (cost == null) {
|
||||
return true;
|
||||
}
|
||||
if (!ai.isAI()) {
|
||||
return false;
|
||||
}
|
||||
for (final CostPart part : cost.getCostParts()) {
|
||||
if (part instanceof CostSacrifice) {
|
||||
CardCollection list = new CardCollection();
|
||||
|
||||
@@ -236,7 +236,7 @@ public final class ImageKeys {
|
||||
cachedContent.put(setFolder, setFolderContent);
|
||||
}
|
||||
}
|
||||
String[] keyParts = StringUtils.split(pc.getImageKeyFromSet(), "//");
|
||||
String[] keyParts = StringUtils.split(pc.getCardImageKey(), "//");
|
||||
if (keyParts.length != 2)
|
||||
return false;
|
||||
HashSet<String> content = cachedContent.getOrDefault(keyParts[0], null);
|
||||
|
||||
Reference in New Issue
Block a user