mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Fixed a crash when breaking redstone ore with an Elementium Pickaxe or Terra Shatterer with Elementium tips.
This commit is contained in:
1 parent
00896bebb8
commit
3d3aee2ebc
1 file changed
+3
+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))
|
||||
|
||||
Reference in new issue
Block a user