Fix a few warnings (#11576)
This commit is contained in:
@@ -52,7 +52,8 @@ namespace Content.Client.VendingMachines.UI
|
||||
}
|
||||
|
||||
var longestEntry = string.Empty;
|
||||
var spriteSystem = EntitySystem.Get<SpriteSystem>();
|
||||
var spriteSystem = IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<SpriteSystem>();
|
||||
|
||||
for (var i = 0; i < inventory.Count; i++)
|
||||
{
|
||||
var entry = inventory[i];
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Content.Client.VendingMachines
|
||||
base.Open();
|
||||
|
||||
var entMan = IoCManager.Resolve<IEntityManager>();
|
||||
var vendingMachineSys = EntitySystem.Get<VendingMachineSystem>();
|
||||
var vendingMachineSys = entMan.System<VendingMachineSystem>();
|
||||
|
||||
_cachedInventory = vendingMachineSys.GetAllInventory(Owner.Owner);
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace Content.Client.VendingMachines
|
||||
|
||||
private void OnItemSelected(ItemList.ItemListSelectedEventArgs args)
|
||||
{
|
||||
if (_cachedInventory == null || _cachedInventory.Count == 0)
|
||||
if (_cachedInventory.Count == 0)
|
||||
return;
|
||||
|
||||
var selectedItem = _cachedInventory.ElementAtOrDefault(args.ItemIndex);
|
||||
|
||||
Reference in New Issue
Block a user