Added jackhammers

This commit is contained in:
TheDoctorSoda 2016-02-28 11:18:59 -08:00
parent 3ad3453499
commit 9e5f223a42
21 changed files with 359 additions and 98 deletions

View file

@ -23,9 +23,8 @@ public class OreDictUtils {
}
public static boolean isOre(ItemStack stack, String oreName) {
int id = OreDictionary.getOreID(oreName);
if (stack != null || stack.getItem() != null) {
if (stack != null && stack.getItem() != null && oreName != null) {
int id = OreDictionary.getOreID(oreName);
int[] ids = OreDictionary.getOreIDs(stack);
for (int i : ids) {