A couple more nulls

This commit is contained in:
Vincent Lee committed 2017-01-16 14:29:16 -06:00
1 parent ec94aa640d
commit b04d6bbefa
8 files changed
+17 -21

No files matched your search

@@ -130,13 +130,10 @@ public class LexiconEntry implements Comparable<LexiconEntry> {
public List<ItemStack> getDisplayedRecipes() {
ArrayList<ItemStack> list = new ArrayList<>();
for(LexiconPage page : pages) {
List<ItemStack> l = page.getDisplayedRecipes();
ArrayList<ItemStack> itemsAddedThisPage = new ArrayList<>();
if(l != null) {
ArrayList<ItemStack> itemsAddedThisPage = new ArrayList<>();
for(ItemStack s : l) {
addItem: {
for(ItemStack s : page.getDisplayedRecipes()) {
addItem: {
for(ItemStack s1 : itemsAddedThisPage)
if(s1.getItem() == s.getItem())
break addItem;
@@ -147,7 +144,6 @@ public class LexiconEntry implements Comparable<LexiconEntry> {
itemsAddedThisPage.add(s);
list.add(s);
}
}
}
}