Moving item in hover throwing RPC errorFixed

As the title said it happened when I tried to move items in hover mode to my main inventory with gathering mode on

 

Console log:

 

IndexOutOfRangeException: Index 1 was outside the bounds of the collection of size 1
[04.08 10:28:43] IndexOutOfRangeException: Index 1 was outside the bounds of the collection of size 1
[04.08 10:28:43] at Oxide.Plugins.Backpacks+ContainerAdapterCollection.get_Item (System.Int32 i) [0x00024] in <4d0a05b75bb14f8e94f9ad0ea1d3452c>:0
[04.08 10:28:43] at Oxide.Plugins.Backpacks+Backpack.TryGatherItem (Item item) [0x000cd] in <4d0a05b75bb14f8e94f9ad0ea1d3452c>:0
[04.08 10:28:43] at Oxide.Plugins.Backpacks+InventoryWatcher.OnItemAddedRemoved (Item item, System.Boolean wasAdded) [0x000d8] in <4d0a05b75bb14f8e94f9ad0ea1d3452c>:0
[04.08 10:28:43] at (wrapper delegate-invoke) System.Action`2[Item,System.Boolean].invoke_void_T1_T2(Item,bool)
[04.08 10:28:43] at ItemContainer.Insert (Item item) [0x00046] in <e81484d7a7ab488a9fdcce2c94cde99d>:0
[04.08 10:28:43] at Item.SetParent (ItemContainer target) [0x00039] in <e81484d7a7ab488a9fdcce2c94cde99d>:0
[04.08 10:28:43] at Item.MoveToContainer (ItemContainer newcontainer, System.Int32 iTargetPos, System.Boolean allowStack, System.Boolean ignoreStackLimit, BasePlayer sourcePlayer, System.Boolean allowSwap) [0x00502] in <e81484d7a7ab488a9fdcce2c94cde99d>:0
[04.08 10:28:43] at PlayerInventory.GiveItem (Item item, ItemMoveModifier modifiers, ItemContainer container) [0x0004a] in <e81484d7a7ab488a9fdcce2c94cde99d>:0
[04.08 10:28:43] at PlayerInventory.MoveItem (BaseEntity+RPCMessage msg) [0x00245] in <e81484d7a7ab488a9fdcce2c94cde99d>:0
[04.08 10:28:43] at PlayerInventory.OnRpcMessage (BasePlayer player, System.UInt32 rpc, Network.Message msg) [0x001e1] in <e81484d7a7ab488a9fdcce2c94cde99d>:0
[04.08 10:28:43] UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
[04.08 10:28:43] UnityEngine.DebugLogHandler:LogException(Exception, Object)
[04.08 10:28:43] UnityEngine.Logger:LogException(Exception, Object)
[04.08 10:28:43] UnityEngine.Debug:LogException(Exception)
[04.08 10:28:43] PlayerInventory:OnRpcMessage(BasePlayer, UInt32, Message)
[04.08 10:28:43] BaseEntity:SV_RPCMessage(UInt32, Message)
[04.08 10:28:43] ServerMgr:OnRPCMessage(Message)
[04.08 10:28:43] ServerMgr:OnNetworkMessage(Message)
[04.08 10:28:43] Facepunch.Network.Raknet.Server:ProcessRead(NetRead)
[04.08 10:28:43] Network.BaseNetwork:Cycle()
[04.08 10:28:43] ServerMgr:Update()
[04.08 10:28:43] 36.71.xx.xxx:xxxxx/76561############/RuLey kicked: RPC Error in MoveItem

I will look into this. I have some ideas on how this could happen.

Thank you.

I was able to reproduce the issue by enabling gather mode on page 2, then reducing my backpack capacity to just 1 page, then reloading the plugin, then opening page 1, then increasing my backpack capacity to 2 pages, then picking up an item.

This has been fixed in v3.13.5.

Thank you for the swift updates! We're truly grateful to have such dedicated developers maintaining this essential plugin, especially considering it's freely available for everyone to benefit from.

Locked automatically