mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-21 04:32:23 +00:00
Cleanup
This commit is contained in:
1 parent
73377e311d
commit
a6729c088b
53 files changed
+259
-289
No files matched your search
@@ -127,22 +127,22 @@ public class LexiconEntry implements Comparable<LexiconEntry> {
|
||||
ArrayList<ItemStack> list = new ArrayList();
|
||||
for(LexiconPage page : pages) {
|
||||
List<ItemStack> l = page.getDisplayedRecipes();
|
||||
|
||||
|
||||
if(l != null) {
|
||||
ArrayList<ItemStack> itemsAddedThisPage = new ArrayList();
|
||||
|
||||
for(ItemStack s : l) {
|
||||
addItem: {
|
||||
for(ItemStack s1 : itemsAddedThisPage)
|
||||
if(s1.getItem() == s.getItem())
|
||||
break addItem;
|
||||
for(ItemStack s1 : list)
|
||||
if(s1.isItemEqual(s) && ItemStack.areItemStackTagsEqual(s1, s))
|
||||
break addItem;
|
||||
|
||||
itemsAddedThisPage.add(s);
|
||||
list.add(s);
|
||||
}
|
||||
for(ItemStack s1 : itemsAddedThisPage)
|
||||
if(s1.getItem() == s.getItem())
|
||||
break addItem;
|
||||
for(ItemStack s1 : list)
|
||||
if(s1.isItemEqual(s) && ItemStack.areItemStackTagsEqual(s1, s))
|
||||
break addItem;
|
||||
|
||||
itemsAddedThisPage.add(s);
|
||||
list.add(s);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user