public override void Refresh() { MegaStorageMod.Instance.Monitor.VerboseLog("Category: " + SelectedCategory.name); var filteredItems = SelectedCategory.Filter(CustomChest.items); ItemsToGrabMenu.actualInventory = filteredItems.Skip(ItemsPerRow * _currentRow).ToList(); _maxRow = (filteredItems.Count - 1) / 12 + 1 - Rows; if (_currentRow > _maxRow) { _currentRow = _maxRow; } }