InvalidOperationException at EraseContentsFixed
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 :0 
  at System.Collections.Generic.List`1+Enumerator[T].MoveNextRare () [0x00013] in :0 
  at System.Collections.Generic.List`1+Enumerator[T].MoveNext () [0x0004a] in :0 
  at Oxide.Plugins.Backpacks+Backpack.EraseContents () [0x0002f] in <7f007226e78a45aa8024a20c825ee2d0>:0 
  at Oxide.Plugins.Backpacks.OnEntityDeath (BaseCombatEntity victim, HitInfo info) [0x0004a] in <7f007226e78a45aa8024a20c825ee2d0>:0 
  at Oxide.Plugins.Backpacks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001ed] in <7f007226e78a45aa8024a20c825ee2d0>: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 

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 :0 
  at System.Collections.Generic.List`1+Enumerator[T].MoveNextRare () [0x00013] in :0 
  at System.Collections.Generic.List`1+Enumerator[T].MoveNext () [0x0004a] in :0 
  at Oxide.Plugins.Backpacks+Backpack.EraseContents () [0x0002f] in :0 
  at Oxide.Plugins.Backpacks.OnEntityDeath (BaseCombatEntity victim, HitInfo info) [0x0004a] in :0 
  at Oxide.Plugins.Backpacks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001ed] in :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 
My config is correct but a bug is still happening regarding Backpack Dissappear upon Death.

bug?
{
  "Drop on Death (true/false)": false,
  "Erase on Death (true/false)": true,
  "Use Blacklist (true/false)": false,
  "Clear Backpacks on Map-Wipe (true/false)": true,
  "Only Save Backpacks on Server-Save (true/false)": true,
  "Blacklisted Items (Item Shortnames)": [
    "rock"
  ],
  "Backpack Size (1-7 Rows)": 1
}
Sounds like you are using fully updated with Oxide.
5e13a8d5b2bc5.jpg Wulf
Sounds like you are using fully updated with Oxide.
I am at the latest oxide.

and also with the latest Bagpack updates.

Merged post

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 <debeb4083db04093b3195d3d4e8e543b>:0 
  at Oxide.Plugins.Backpacks.OnEntityDeath (BaseCombatEntity victim, HitInfo info) [0x0004a] in <debeb4083db04093b3195d3d4e8e543b>:0 
  at Oxide.Plugins.Backpacks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x001ed] in <debeb4083db04093b3195d3d4e8e543b>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <41771c7bc8d246d0b0a34c2f0d27f2cb>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b0a93b504f034a0db8b1c3d2503c0987>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b0a93b504f034a0db8b1c3d2503c0987>:0 
Merged with your existing thread on the same issue. I would suggest making sure your oxide/data for the plugin is not corrupt.
Okay, I've wiped all files from Data Folder and recreate the bug. Bug is still there. This time even when I've enabled Backpack Drop on Death and Disappear on Death.

{
  "Drop on Death (true/false)": true,
  "Erase on Death (true/false)": true,
  "Use Blacklist (true/false)": false,
  "Clear Backpacks on Map-Wipe (true/false)": true,
  "Only Save Backpacks on Server-Save (true/false)": true,
  "Blacklisted Items (Item Shortnames)": [
    "rock"
  ],
  "Backpack Size (1-7 Rows)": 1
}​


What I did was put in items in backpack. Kill self, respawn, open backpack again, item is still inside backpack.

This bug is going to be very unhealthy. As it can act as a BANK for players.

The InvalidOperationException should be fixed with update 3.0.6.
Locked automatically