Created
December 26, 2015 17:26
-
-
Save LionZXY/f3640bf41d46e4548a51 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OreDictItemData tData = OM.data(itemStack); | |
getNormalOreDict(tData.mMaterial.mMaterial.mNameInternal); | |
public static String getNormalOreDict(String oreDict) { | |
if (OreDictionary.doesOreNameExist("plate" + oreDict) && OreDictionary.getOres("plate" + oreDict).size() > 0) | |
return "plate" + oreDict; | |
if (OreDictionary.doesOreNameExist("ingot" + oreDict) && OreDictionary.getOres("ingot" + oreDict).size() > 0) | |
return "ingot" + oreDict; | |
if (OreDictionary.doesOreNameExist("gem" + oreDict) && OreDictionary.getOres("gem" + oreDict).size() > 0) | |
return "gem" + oreDict; | |
return oreDict; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment