Added jackhammers
This commit is contained in:
parent
3ad3453499
commit
9e5f223a42
21 changed files with 359 additions and 98 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue