mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Reverted several Java 8 functions to their Java 7 counterparts for Android compatibility.
This commit is contained in:
@@ -359,7 +359,7 @@ public class AbilityUtils {
|
|||||||
if (StringUtils.isNumeric(amount)) {
|
if (StringUtils.isNumeric(amount)) {
|
||||||
int val = Integer.parseInt(amount);
|
int val = Integer.parseInt(amount);
|
||||||
if (maxto) {
|
if (maxto) {
|
||||||
val = Integer.max(val, 0);
|
val = Math.max(val, 0);
|
||||||
}
|
}
|
||||||
return val * multiplier;
|
return val * multiplier;
|
||||||
}
|
}
|
||||||
@@ -399,7 +399,7 @@ public class AbilityUtils {
|
|||||||
if (StringUtils.isNumeric(svarval)) {
|
if (StringUtils.isNumeric(svarval)) {
|
||||||
int val = Integer.parseInt(svarval);
|
int val = Integer.parseInt(svarval);
|
||||||
if (maxto) {
|
if (maxto) {
|
||||||
val = Integer.max(val, 0);
|
val = Math.max(val, 0);
|
||||||
}
|
}
|
||||||
return val * multiplier;
|
return val * multiplier;
|
||||||
}
|
}
|
||||||
@@ -472,7 +472,7 @@ public class AbilityUtils {
|
|||||||
|
|
||||||
if (val != null) {
|
if (val != null) {
|
||||||
if (maxto) {
|
if (maxto) {
|
||||||
val = Integer.max(val, 0);
|
val = Math.max(val, 0);
|
||||||
}
|
}
|
||||||
return val * multiplier;
|
return val * multiplier;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ public class BoosterDraft implements IBoosterDraft {
|
|||||||
if (myDrafts.isEmpty()) {
|
if (myDrafts.isEmpty()) {
|
||||||
SOptionPane.showMessageDialog("No custom draft files found.");
|
SOptionPane.showMessageDialog("No custom draft files found.");
|
||||||
} else {
|
} else {
|
||||||
myDrafts.sort(new Comparator<CustomLimited>() {
|
Collections.sort(myDrafts, new Comparator<CustomLimited>() {
|
||||||
@Override
|
@Override
|
||||||
public int compare(CustomLimited o1, CustomLimited o2) {
|
public int compare(CustomLimited o1, CustomLimited o2) {
|
||||||
return o1.getName().compareTo(o2.getName());
|
return o1.getName().compareTo(o2.getName());
|
||||||
|
|||||||
Reference in New Issue
Block a user