Some small fixes the PDA
This commit is contained in:
parent
2410b4852f
commit
6d34d072af
2 changed files with 4 additions and 3 deletions
|
@ -89,7 +89,6 @@ public class ManualLoader {
|
||||||
File inputData = new File(outputDir, "master.json");
|
File inputData = new File(outputDir, "master.json");
|
||||||
BufferedReader reader = new BufferedReader(new FileReader(inputData));
|
BufferedReader reader = new BufferedReader(new FileReader(inputData));
|
||||||
ManualLoader.format = gson.fromJson(reader, ManualFormat.class);
|
ManualLoader.format = gson.fromJson(reader, ManualFormat.class);
|
||||||
System.out.println(ManualLoader.format);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@ public class CategoriesPage extends TitledPage
|
||||||
buttonList.clear();
|
buttonList.clear();
|
||||||
ArrayList<String> categories = new ArrayList<>();
|
ArrayList<String> categories = new ArrayList<>();
|
||||||
for(Entry entry : ManualLoader.format.entries){
|
for(Entry entry : ManualLoader.format.entries){
|
||||||
if(categories.contains(entry.category)){
|
if(!categories.contains(entry.category)){
|
||||||
categories.add(entry.category);
|
categories.add(entry.category);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -45,7 +45,9 @@ public class CategoriesPage extends TitledPage
|
||||||
for(String string : categories){
|
for(String string : categories){
|
||||||
buttonList.add(new GuiButtonItemTexture(i, getXMin() + 20, getYMin() + 20 + (i * 20), 0, 46, 100, 20,
|
buttonList.add(new GuiButtonItemTexture(i, getXMin() + 20, getYMin() + 20 + (i * 20), 0, 46, 100, 20,
|
||||||
ItemPlates.getPlateByName("iron"), string,
|
ItemPlates.getPlateByName("iron"), string,
|
||||||
ttl(Reference.GETTINGSTARTED_KEY)));
|
string));
|
||||||
|
i++;
|
||||||
|
System.out.println(string);
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue