Removed almost all uses from ItemIds

This commit is contained in:
Frank Baumann
2014-05-19 15:17:55 +02:00
parent a4b9b08f82
commit 8d8d83c176
12 changed files with 108 additions and 120 deletions
+3 -3
View File
@@ -297,17 +297,17 @@ public class BIngredients {
if (cookedTime != 0) {
config.set(path + ".cookedTime", cookedTime);
}
config.set(path + ".mats", serializeIngredients());
config.set(path + ".mats", ingredients);
return id;
}
// convert the ingredient Material to id
public Map<Integer, Integer> serializeIngredients() {
/*public Map<Integer, Integer> serializeIngredients() {
Map<Integer, Integer> mats = new HashMap<Integer, Integer>();
for (Material mat : ingredients.keySet()) {
mats.put(mat.getId(), ingredients.get(mat));
}
return mats;
}
}*/
}