lathe recipes no longer specify textures (#12944)

Co-authored-by: Moony <moony@hellomouse.net>
This commit is contained in:
Nemanja
2023-01-01 18:56:03 -05:00
committed by GitHub
parent 4a7c0b94b2
commit 69971272e6
20 changed files with 25 additions and 566 deletions

View File

@@ -140,7 +140,9 @@ public sealed partial class LatheMenu : DefaultWindow
sb.Append(Loc.GetString(proto.Name));
}
var icon = _spriteSystem.Frame0(prototype.Icon);
var icon = prototype.Icon == null
? _spriteSystem.GetPrototypeIcon(prototype.Result).Default
: _spriteSystem.Frame0(prototype.Icon);
var canProduce = _lathe.CanProduce(lathe, prototype, quantity);
var control = new RecipeControl(prototype, sb.ToString(), canProduce, icon);