You have it backwards.
The code shouldn't have worked very well at all on multiple lines, you're depositing into backpacks that have already been dug down into. That should be a clear sign that something is wrong.
When the deposit function was first released everyone (mostly) used it properly. For some reason, now, it's being called multiple times in everyone's script. Anyways, Nick will fix the issue by adding a delay and closing the depot and depot backpacks.
I do recommend you fix your scripts though. You can span the table across multiple lines and tab properly if you wish to distinguish the items, it's cleaner than multiple functions.
lua code:Self.DepositItems(
-- First Depot Backpack
{7427, 0},
{21175, 0},
{3318, 0},
{21174, 0},
{3381, 0},
-- Second Depot Backpack
{21200, 1},
{7443, 1},
{5911, 1},
{21201, 1},
{5912, 1}
)