Added a way to get the fmp cables in survival, will make this better later
This commit is contained in:
parent
482c07d991
commit
84fc33edab
5 changed files with 35 additions and 18 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue