@@ -542,25 +542,27 @@ Container = (function()
542
542
543
543
-- Create itemid list for each supply group
544
544
for itemid , supply in pairs (_supplies ) do
545
- -- Amulets and Rings always go in the Supplies backpack
546
- local name = supply .group
547
- if name == ' Amulet' or name == ' Ring' then
548
- name = ' Supplies'
549
- end
550
- -- Send to Main backpack list if it matches the index
551
- local backpack = _backpacks [name ]
552
- if backpack then
553
- if backpack == _backpacks [' Main' ] then
554
- name = ' Main'
545
+ if itemid ~= ITEMID .GOLDEN_MUG then
546
+ -- Amulets and Rings always go in the Supplies backpack
547
+ local name = supply .group
548
+ if name == ' Amulet' or name == ' Ring' then
549
+ name = ' Supplies'
555
550
end
556
- -- Init table if it doesn't exist
557
- if not itemLists [backpack ] then
558
- itemLists [backpack ] = {}
559
- -- Add backpack to index for easy iteration
560
- destinations [# destinations + 1 ] = {name , backpack }
551
+ -- Send to Main backpack list if it matches the index
552
+ local backpack = _backpacks [name ]
553
+ if backpack then
554
+ if backpack == _backpacks [' Main' ] then
555
+ name = ' Main'
556
+ end
557
+ -- Init table if it doesn't exist
558
+ if not itemLists [backpack ] then
559
+ itemLists [backpack ] = {}
560
+ -- Add backpack to index for easy iteration
561
+ destinations [# destinations + 1 ] = {name , backpack }
562
+ end
563
+ -- Add supply item to the list
564
+ itemLists [backpack ][itemid ] = true
561
565
end
562
- -- Add supply item to the list
563
- itemLists [backpack ][itemid ] = true
564
566
end
565
567
end
566
568
0 commit comments