Dear nivex / Dangerous Treasures Support Team,
I hope you are doing well.
I am currently running the Dangerous Treasures plugin (from uMod) alongside Better NPC on my Rust server. I have encountered an issue where NPCs spawned by Better NPC do not drop loot after a short period of normal operation. Specifically, after restarting the server or the plugin, NPCs drop loot correctly for around 15 minutes, but then suddenly stop dropping any loot at all. This affects not only NPCs from Better NPC but also loot from player bodies and raidable bases.
We observed the following:
When Better NPC is disabled, the loot drops work normally.
During the problematic period, an error appears in the logs related to Dangerous Treasures:
InvalidOperationException: Collection was modified; enumeration operation may not execute. at Oxide.Plugins.DangerousTreasures.TreasureChest.EquipWeapon(...)We suspected a plugin conflict and tested by removing several other plugins, but the error and issue persist while Better NPC and Dangerous Treasures are both active.
The issue might be linked to a hook or interaction between Dangerous Treasures and Better NPC, but we have not pinpointed the root cause yet.
Could you please advise if Dangerous Treasures might cause this loot-dropping issue or the exception above? Are there any known compatibility issues with Better NPC or other plugins? Additionally, is there a configuration or update that could prevent this conflict or error?
Thank you very much for your time and support.
Best regards