Added a way to get the fmp cables in survival, will make this better later

This commit is contained in:
modmuss50 2015-06-23 13:23:56 +01:00
parent 482c07d991
commit 84fc33edab
5 changed files with 35 additions and 18 deletions

View file

@ -61,10 +61,10 @@ public class ModPartUtils {
}
public static Item getItemForPart(String string) {
for (Map.Entry<Item, String> item : ModPartRegistry.itemParts
for (Map.Entry<String, Item> item : ModPartRegistry.itemParts
.entrySet()) {
if (item.getValue().equals(string)) {
return item.getKey();
return item.getValue();
}
}
return null;