Fix JackHammer crash when mining blocks
This commit is contained in:
parent
9847719a91
commit
57d1c60750
1 changed files with 3 additions and 3 deletions
|
@ -53,9 +53,9 @@ public class ItemJackhammer extends ItemPickaxe implements IEnergyItemInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canHarvestBlock(IBlockState state) {
|
public boolean canHarvestBlock(final IBlockState state, final ItemStack stack) {
|
||||||
// TODO needs // FIXME: 13/03/2016
|
return OreDictUtils.isOre(state, "stone")
|
||||||
return OreDictUtils.isOre(state, "stone") || state.getBlock().getMaterial(state) == Material.ROCK && PoweredItem.canUseEnergy(cost, null);
|
|| state.getBlock().getMaterial(state) == Material.ROCK && PoweredItem.canUseEnergy(this.cost, stack);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue