Binnie Master Registry search window not working

https://github.com/GTNewHorizons/NewHorizons/issues/4685
This commit is contained in:
repo_alt committed 2019-12-29 22:19:52 +03:00
1 parent 87ccfb36c4
commit 74d8810684
1 file changed
+1 -1
@@ -53,7 +53,7 @@ public class AnalystPageDatabase extends ControlAnalystPage {
Collection<IAlleleSpecies> options = new ArrayList<>();
getSpecies(system);
for (IAlleleSpecies species : getSpecies(system)) {
if (value != null && value.isEmpty() && !species.getName().toLowerCase().contains(value.toLowerCase())) {
if (value != null && !value.isEmpty() && !species.getName().toLowerCase().contains(value.toLowerCase())) {
continue;
}
options.add(species);