mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-30 20:49:25 -05:00
@@ -197,9 +197,13 @@ private void SetBags()
|
||||
|
||||
private void GetBag(DataGridView dgv, InventoryPouch pouch)
|
||||
{
|
||||
var valid = pouch.GetAllItems();
|
||||
for (int i = 0; i < dgv.Rows.Count; i++)
|
||||
{
|
||||
var item = pouch.Items[i];
|
||||
if (item.Index != 0 && !valid.Contains((ushort)item.Index) && !Main.HaX)
|
||||
item = pouch.Items[i] = pouch.GetEmpty();
|
||||
|
||||
var cells = dgv.Rows[i].Cells;
|
||||
cells[ColumnItem].Value = itemlist[item.Index];
|
||||
cells[ColumnCount].Value = item.Count;
|
||||
|
||||
Reference in New Issue
Block a user