Erase On Death not working, InvalidOperationExceptionFixed
{
  "Drop on Death (true/false)": false,
  "Erase on Death (true/false)": true,
  "Use Blacklist (true/false)": false,
  "Clear Backpacks on Map-Wipe (true/false)": false,
  "Only Save Backpacks on Server-Save (true/false)": false,
  "Blacklisted Items (Item Shortnames)": [
    "autoturret",
    "lmg.m249"
  ],
  "Backpack Size (1-7 Rows)": 2
}
Same problem
After the last rust update the plugin gives an error and kick the player
Failed to call hook 'OnEntityDeath' on plugin 'Backpacks v3.0.2' (InvalidOperationException: Collection was modified; enumeration operation may not execute.)
at System.ThrowHelper.ThrowInvalidOperationException (System.ExceptionResource resource) [0x0000b] in <a8ed250850854b439cedc18931a314fe>:0
at System.Collections.Generic.List`1+Enumerator[T].MoveNextRare () [0x00013] in <a8ed250850854b439cedc18931a314fe>:0
at System.Collections.Generic.List`1+Enumerator[T].MoveNext () [0x0004a] in <a8ed250850854b439cedc18931a314fe>:0
at Oxide.Plugins.Backpacks+Backpack.EraseContents () [0x0002f] in <e8bec7d1e8e446daa794a6af7a9d3a45>:0
at Oxide.Plugins.Backpacks.OnEntityDeath (BaseCombatEntity victim, HitInfo info) [0x0004a] in <e8bec7d1e8e446daa794a6af7a9d3a45>:0
at Oxide.Plugins.Backpacks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001ed] in <e8bec7d1e8e446daa794a6af7a9d3a45>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9affce1cd15c4ec183941adef8db1722>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <4452f821def6406d834e4149849fe7ea>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <4452f821def6406d834e4149849fe7ea>:0​

Please excuse my delayed reply. This should be fixed with update 3.0.6.
Locked automatically