Type `MiniCopter' does not contain a definition for `HasFuel'Solved

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 :)

When something has been marked `Error` does that mean it requires a change to something other than my .CS file to work...? If not I could really do with some help on this issue.
They changed how fuel works in vehicles with the new modular cars update.  Try this:

(entity as MiniCopter).GetFuelSystem().HasFuel()​
Cool - giving it a try :D
Locked automatically