private void ForceCloseAiInventories() { foreach (var pair in InventoryMonitor) { InventoryRemove(pair.Key, pair.Value); } if (InventoryMonitor.Count > 0) { Log.Line($"Found stale inventories during AI close - failedToRemove:{InventoryMonitor.Count}"); InventoryMonitor.Clear(); } }