A more efficient way of doing the same check in the last commit
(cherry picked from commit f119a3a907070793be1e7b142be76706c32aa847)
This commit is contained in:
parent
e056caee88
commit
2aa81c0457
|
@ -91,8 +91,7 @@ public class BlacklistRegistry {
|
|||
else if (object instanceof ItemStack){
|
||||
Collection<String> oreNames = OreDictionaryHelper.getOreNames((ItemStack) object);
|
||||
for (String oreName : oreNames) {
|
||||
boolean isNotLearnable = !isLearnable(new OreStack(oreName));
|
||||
if (isNotLearnable) {
|
||||
if (knowledgeBlacklist.contains(WrappedStack.wrap(new OreStack(oreName)))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -123,8 +122,7 @@ public class BlacklistRegistry {
|
|||
else if (object instanceof ItemStack){
|
||||
Collection<String> oreNames = OreDictionaryHelper.getOreNames((ItemStack) object);
|
||||
for (String oreName : oreNames) {
|
||||
boolean isNotLearnable = !isLearnable(new OreStack(oreName));
|
||||
if (isNotLearnable) {
|
||||
if (exchangeBlacklist.contains(WrappedStack.wrap(new OreStack(oreName)))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue