Simplified calls to .Remove()

This commit is contained in:
Chomp
2025-07-14 20:02:46 +01:00
parent 5ef2271a29
commit 6f3ce60cec
4 changed files with 4 additions and 18 deletions
@@ -722,10 +722,7 @@ public class InventoryController(
)
{
// Remove link
if (pmcData.Inventory.FastPanel.ContainsKey(bindRequest.Index))
{
pmcData.Inventory.FastPanel.Remove(bindRequest.Index);
}
pmcData.Inventory.FastPanel.Remove(bindRequest.Index);
// Create link between fast panel slot and requested item
pmcData.Inventory.FastPanel[bindRequest.Index] = bindRequest.Item;