Initial fix to allow null itemstacks
This commit is contained in:
parent
56e41efd6b
commit
46ee2fc71d
4 changed files with 22 additions and 9 deletions
|
@ -113,6 +113,9 @@ public class ItemUtils {
|
|||
}
|
||||
|
||||
public static List<ItemStack> getStackWithAllOre(ItemStack stack){
|
||||
if(stack == null){
|
||||
return new ArrayList<ItemStack>();
|
||||
}
|
||||
ArrayList<ItemStack> list = new ArrayList<ItemStack>();
|
||||
for (int oreID : OreDictionary.getOreIDs(stack)){
|
||||
for(ItemStack ore : OreDictionary.getOres(OreDictionary.getOreName(oreID))){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue