Error after some time plugin is running

RaidableBases - Failed to compile: An expression of type 'BaseEntity' cannot be handled by a pattern of type 'Parachute'. | Line: 7980, Pos: 17

 

private bool ShouldEject(BaseEntity entity) => entity switch
            {
                Parachute _ => config.Settings.Management.Mounts.Parachutes,
                Tugboat _ => config.Settings.Management.Mounts.Tugboats,
                BaseBoat _ => config.Settings.Management.Mounts.Boats,
                BasicCar _ => config.Settings.Management.Mounts.BasicCars,
                ModularCar car => config.Settings.Management.Mounts.ModularCars || IsBlockingCampers(car),
                CH47Helicopter _ => config.Settings.Management.Mounts.CH47,
                RidableHorse _ => config.Settings.Management.Mounts.Horses,
                ScrapTransportHelicopter _ => config.Settings.Management.Mounts.Scrap,
                AttackHelicopter _ => config.Settings.Management.Mounts.AttackHelicopters,
                Minicopter _ => config.Settings.Management.Mounts.MiniCopters,
                Snowmobile _ => config.Settings.Management.Mounts.Snowmobile,
                StaticInstrument _ => config.Settings.Management.Mounts.Pianos,
                _ => config.Settings.Management.Mounts.Other
            };

I commented out the parachute line, I'll report back if it fixes it

it fixes it because you have a plugin named Parachute. plugins should not have the same name as class names.

HumanNPC is the exception to this since the plugin existed before the class name.

you can change Parachute to global::Parachute in the RB cs file

nivex

it fixes it because you have a plugin named Parachute. plugins should not have the same name as class names.

HumanNPC is the exception to this since the plugin existed before the class name.

you can change Parachute to global::Parachute in the RB cs file

Thanks Nivex!

no problem! after looking, there are other insteads of Parachute in the .cs. i've changed them all to global::Parachute in next update.