]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Changes required for iconComponent engine PR (#16575)
authorLeon Friedrich <60421075+ElectroJr@users.noreply.github.com>
Fri, 19 May 2023 07:13:10 +0000 (19:13 +1200)
committerGitHub <noreply@github.com>
Fri, 19 May 2023 07:13:10 +0000 (17:13 +1000)
Content.Client/Kitchen/UI/MicrowaveBoundUserInterface.cs

index be2f8440c77454b11e48f2bce79bb65ec9d2bfa9..dcfdf2cec361a5ae7627e10038676389bd3c4776 100644 (file)
@@ -98,10 +98,12 @@ namespace Content.Client.Kitchen.UI
                     return;
                 }
 
+                // TODO just use sprite view
+
                 Texture? texture;
                 if (_entityManager.TryGetComponent(entity, out IconComponent? iconComponent))
                 {
-                    texture = iconComponent.Icon?.Default;
+                    texture = _entityManager.System<SpriteSystem>().GetIcon(iconComponent);
                 }
                 else if (_entityManager.TryGetComponent(entity, out SpriteComponent? spriteComponent))
                 {