mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Fixed that choose creature type dialog don't shows custom sets (#5569)
This commit is contained in:
parent
2cd9e25229
commit
e9c6c4fefa
1 changed files with 3 additions and 3 deletions
|
@ -22,11 +22,11 @@ public class ChoiceCreatureType extends ChoiceImpl {
|
||||||
this(true, chooseMessage, source);
|
this(true, chooseMessage, source);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ChoiceCreatureType(boolean required, String chooseMessage, MageObject source){
|
public ChoiceCreatureType(boolean required, String chooseMessage, MageObject source) {
|
||||||
super(required);
|
super(required);
|
||||||
this.setChoices(SubType.getCreatureTypes(false).stream().map(SubType::toString).collect(Collectors.toCollection(LinkedHashSet::new)));
|
this.setChoices(SubType.getCreatureTypes().stream().map(SubType::toString).collect(Collectors.toCollection(LinkedHashSet::new)));
|
||||||
this.setMessage(chooseMessage);
|
this.setMessage(chooseMessage);
|
||||||
if(source != null) {
|
if (source != null) {
|
||||||
this.setSubMessage(source.getIdName());
|
this.setSubMessage(source.getIdName());
|
||||||
}
|
}
|
||||||
this.setSearchEnabled(true);
|
this.setSearchEnabled(true);
|
||||||
|
|
Loading…
Reference in a new issue