Start on the update

This commit is contained in:
modmuss50 2016-11-19 12:50:08 +00:00
parent c8d8ce0241
commit a0e6a2dc34
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82
112 changed files with 522 additions and 503 deletions

View file

@ -57,9 +57,9 @@ public class OreDictUtils {
public static ItemStack getDictOreOrNull(String name, int amount) {
List<ItemStack> ores = OreDictionary.getOres(name);
if (ores.isEmpty())
return null;
return ItemStack.EMPTY;
ItemStack ore = ores.get(0);
ore.stackSize = amount;
ore.setCount(amount);
return ore;
}
@ -78,7 +78,7 @@ public class OreDictUtils {
}
public static boolean isOre(ItemStack stack, String oreName) {
if (stack != null && stack.getItem() != null && oreName != null) {
if (stack != null && !stack.isEmpty() && oreName != null) {
int id = OreDictionary.getOreID(oreName);
int[] ids = OreDictionary.getOreIDs(stack);