Closed secondfry closed 8 years ago
Mind that it should only list species that are not marked as secret.
@Vexatos, it is not current behavior tho, should it really behave this way? [UPD] For example default setting in NEI Addons 1.12.14.40 is 'add all bees to NEI search'.
It is actually not. Secret species aren't shown by default, neither are secret mutations.
@Vexatos, judging by code of NEI Addons and testing in-game showSecret
only hides the mutation while addBees
still adds it to listing.
Interesting.
I still think they should not be shown. They are secret for a reason.
@Vexatos, I dig some more. IAlleleSpecies.isSecret()
equals true for all species besides Forestry starters and doesn't relate to actual secret species. That's why addBees
in NEI Addons adds all bees.
There is IMutation.isSecret()
tho which relates to showSecret
in NEI Addons directly. I will implement argument for AdapterBeeHousing.getBeeBreedingData()
in silimar way then.
Thank you for submitting your solution, but I've decided to close issue via 2436fae666489670fac588e98a9555ce686547c5. This PR had few problems:
.contains(...)
on List<Map<String, String>>
is terribly inefficient@boq, well, whatever, I was thinking ArrayList is actually a HashMap, rookie mistake. Thanks for solving a dispute.
Fixes #26 – now it does report all species instead of all mutations. Adds argument for getBeeBreedingData() to honor IMutation.isSecret() status. Iterates over IAllele for IAlleleSpecies for name of result of mutation.