Readds Iconcomponent (#2142)

* icon fix

* stuff

* directional texture rework
This commit is contained in:
Paul Ritter
2020-09-28 20:53:47 +02:00
committed by GitHub
parent b24d36eda0
commit 68031990a2
7 changed files with 71 additions and 28 deletions

View File

@@ -50,7 +50,7 @@ namespace Content.Client.VendingMachines
Texture icon = null;
if(_prototypeManager.TryIndex(entry.ID, out EntityPrototype prototype))
{
icon = SpriteComponent.GetPrototypeIcon(prototype, _resourceCache);
icon = SpriteComponent.GetPrototypeIcon(prototype, _resourceCache)?.Default;
}
_items.AddItem($"{itemName} ({entry.Amount} left)", icon);
}