I'm getting this error on one of my plugins:
Type `MiniCopter' does not contain a definition for `HasFuel' and no extension method `HasFuel' of type `MiniCopter' could be found. Are you missing an assembly reference?
The code currently looks like this:
if (hitInfo.damageTypes.Has(Rust.DamageType.Decay) && entity is MiniCopter && (entity as MiniCopter).HasFuel()) {
hitInfo.damageTypes.Scale(Rust.DamageType.Decay, scaleOfDecay);
}Is there a fix I can apply for this?
Thanks in advance :)