using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.XAML;
+using Robust.Shared.Prototypes;
using Robust.Shared.Timing;
namespace Content.Client.Materials.UI;
private EntityUid? _owner;
- private Dictionary<string, int> _currentMaterials = new();
+ private Dictionary<ProtoId<MaterialPrototype>, int> _currentMaterials = new();
public MaterialStorageControl()
{
}
var canEject = materialStorage.CanEjectStoredMaterials;
- var mats = materialStorage.Storage.Select(pair => (pair.Key.Id, pair.Value)).ToDictionary();
+ var mats = materialStorage.Storage;
if (_currentMaterials.Equals(mats))
return;