Made the AIOT work with spider webs

Closes #328
This commit is contained in:
Ellpeck 2016-11-06 15:30:04 +01:00
parent eb3e6611db
commit e469c1d634

View file

@ -103,7 +103,12 @@ public class ItemAllToolAA extends ItemToolAA implements IColorProvidingItem{
@Override @Override
public float getStrVsBlock(ItemStack stack, IBlockState state){ public float getStrVsBlock(ItemStack stack, IBlockState state){
return this.hasExtraWhitelist(state.getBlock()) || state.getBlock().getHarvestTool(state) == null || state.getBlock().getHarvestTool(state).isEmpty() || this.getToolClasses(stack).contains(state.getBlock().getHarvestTool(state)) ? this.efficiencyOnProperMaterial : 1.0F; if(state.getBlock() == Blocks.WEB){
return 15.0F;
}
else{
return this.hasExtraWhitelist(state.getBlock()) || state.getBlock().getHarvestTool(state) == null || state.getBlock().getHarvestTool(state).isEmpty() || this.getToolClasses(stack).contains(state.getBlock().getHarvestTool(state)) ? this.efficiencyOnProperMaterial : 1.0F;
}
} }
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)