fix human multi-select on mobile builds

Closes: core-developers/forge#703

Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
This commit is contained in:
Jamin W. Collins
2018-09-11 18:36:13 -06:00
parent a6423b82f0
commit 1da18cb9f5
2 changed files with 2 additions and 2 deletions

View File

@@ -506,7 +506,7 @@ public class MatchController extends AbstractGuiGame {
@Override @Override
public List<GameEntityView> chooseEntitiesForEffect(String title, List<? extends GameEntityView> optionList, DelayedReveal delayedReveal) { public List<GameEntityView> chooseEntitiesForEffect(String title, List<? extends GameEntityView> optionList, DelayedReveal delayedReveal) {
return SGuiChoose.order(title, "Selected", (List<GameEntityView>) optionList); return SGuiChoose.order(title, "Selected", 0, -1, (List<GameEntityView>) optionList, null);
} }
@Override @Override

View File

@@ -172,7 +172,7 @@ public class SGuiChoose {
return order(title, top, 0, 0, sourceChoices, null); return order(title, top, 0, 0, sourceChoices, null);
} }
private static <T> List<T> order(final String title, final String top, final int remainingObjectsMin, final int remainingObjectsMax, public static <T> List<T> order(final String title, final String top, final int remainingObjectsMin, final int remainingObjectsMax,
final List<T> sourceChoices, final List<T> destChoices) { final List<T> sourceChoices, final List<T> destChoices) {
return GuiBase.getInterface().order(title, top, remainingObjectsMin, remainingObjectsMax, sourceChoices, destChoices); return GuiBase.getInterface().order(title, top, remainingObjectsMin, remainingObjectsMax, sourceChoices, destChoices);
} }