Some small fixes the PDA

This commit is contained in:
modmuss50 2016-05-15 09:35:31 +01:00
parent 2410b4852f
commit 6d34d072af
2 changed files with 4 additions and 3 deletions

View file

@ -89,7 +89,6 @@ public class ManualLoader {
File inputData = new File(outputDir, "master.json");
BufferedReader reader = new BufferedReader(new FileReader(inputData));
ManualLoader.format = gson.fromJson(reader, ManualFormat.class);
System.out.println(ManualLoader.format);
}
}

View file

@ -36,7 +36,7 @@ public class CategoriesPage extends TitledPage
buttonList.clear();
ArrayList<String> categories = new ArrayList<>();
for(Entry entry : ManualLoader.format.entries){
if(categories.contains(entry.category)){
if(!categories.contains(entry.category)){
categories.add(entry.category);
}
}
@ -45,7 +45,9 @@ public class CategoriesPage extends TitledPage
for(String string : categories){
buttonList.add(new GuiButtonItemTexture(i, getXMin() + 20, getYMin() + 20 + (i * 20), 0, 46, 100, 20,
ItemPlates.getPlateByName("iron"), string,
ttl(Reference.GETTINGSTARTED_KEY)));
string));
i++;
System.out.println(string);
}
//
//