StorageContainer fuelContainer = mini.GetFuelSystem().GetFuelContainer();
You are making the server work more than it is needed.
StorageContainer fuelContainer = mini.GetFuelSystem().GetFuelContainer();
GibboDaBeastCan confirm this works Thanks!
Code is on line 257 & 331.
This worked for me as well - thank you for calling out both lines!
DMB7
Why isn't that you and some others are adding so much code to the fix? There isn't much to the code (below) vs what you and another have provided.StorageContainer fuelContainer = mini.GetFuelSystem().GetFuelContainer();
You are making the server work more than it is needed.
Just the first thing I tried that worked, there wasn't a thread for the fix so I wasn't aware it was resolved with a better resolution. You're right though, changed my original post.
ive tried the following code and is still throwing the same error in my server :/
edited: Working correctly thank you everyone!!! I tried to enter mini for shortname and was dispatching error just using mini but still made a plugin work correctly
DMB7
Why isn't that you and some others are adding so much code to the fix? There isn't much to the code (below) vs what you and another have provided.StorageContainer fuelContainer = mini.GetFuelSystem().GetFuelContainer();
You are making the server work more than it is needed.
Should actually be this:
StorageContainer fuelContainer = minicopter.GetFuelSystem().GetFuelContainer();
Since, SpooksAU and the rest that have worked on the plugin, used minicopter not mini as I have.
Error while compiling: SpawnMini.cs(320,61): error CS1061: Type `MiniCopter' does not contain a definition for `fuelStorageInstance' and no extension method `fuelStorageInstance' of type `MiniCopter' could be found. Are you missing an assembly reference?
Well even the latest version is still broken... It fails to even compile with the latest Umod update.
@Crunchy We have a patch for it. But there is still a bug with the Cool down being stuck at 1 day. No matter what I have tried with VIP or coding it's broke at 1 day cool down. The current maintainer re-wrote the code and for some reason thought it would be okie to add this section of code into it completely ruining it...