Fixed a crash when breaking redstone ore with an Elementium Pickaxe or Terra Shatterer with Elementium tips.

This commit is contained in:
Vasco Lavos committed 2016-11-14 23:07:33 +00:00
1 parent 00896bebb8
commit 3d3aee2ebc
1 file changed
+3
@@ -40,6 +40,9 @@ public class ItemElementiumPick extends ItemManasteelPick {
}
private static boolean isDisposable(ItemStack stack) {
if(stack == null || stack.getItem() == null)
return false;
for(int id : OreDictionary.getOreIDs(stack)) {
String name = OreDictionary.getOreName(id);
if(BotaniaAPI.disposableBlocks.contains(name))