Fix jackhammer not breaking all rocks, closes #864
This commit is contained in:
parent
b8949ee8fa
commit
0d22eb2c56
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
package techreborn.items.tools;
|
||||
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.enchantment.EnchantmentHelper;
|
||||
|
@ -59,7 +60,7 @@ public class ItemJackhammer extends ItemPickaxe implements IEnergyItemInfo {
|
|||
@Override
|
||||
public boolean canHarvestBlock(IBlockState state) {
|
||||
// TODO needs // FIXME: 13/03/2016
|
||||
return OreDictUtils.isOre(state, "stone") && PoweredItem.canUseEnergy(cost, null);
|
||||
return OreDictUtils.isOre(state, "stone") || state.getBlock().getMaterial(state) == Material.ROCK && PoweredItem.canUseEnergy(cost, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue