Empty barrels/crates.

After blacklisting items I didn't want to have in the barrels it sometimes occured that no item would show in the barrel/crate, just the scrap.
I've done some research in the cs file and I noticed that if it's not a valid item it just skips over it. It doesn't try to replace it, it exits out of the loop iteration.

It would be a lot better if it spawned a non blacklisted item instead of not spawning one at all

Same issue... Is there solution

Currently there is no solution. Main issue being the way it currently works is that it tries to modify the actual rust loot tables instead of just replacing and so on. After research it seems like each barrel/crate somehow gets provided a loot container type which then only contains f.ex. springs. So there is no point to continue looping over the possible items as its the only item. Instead I would have to totally respawn the barrel. Overall not the best of system but it was an experiment nontheless

Merged post

Personally I am a big fan of the current approach though and once I have some free time I will try to find a proper solution to this. (this approach is overall much more performant) For now if you want to use it to heavily modify loot tables I either suggest switching to another plugin called LootPlus or using a pre v1.0.0 version of this plugin!

Alright, thanks.

A question, if you don't update the data file automatically will this cause problems? If not, We can delete items we don't  want to be spawned from data, and plugin will not spawn them and crates won't be empty? Just an idea. I m not a developer. 

No, it updates itself whenever the plugin is loaded.

So it can be disabled? I am asking for this: "I will update the data just for a time and will delete items that I don't want to be spawned. So crates/barrels won't be empty."

Can this solve the problem?