Skip to content

Commit

Permalink
Fixed tab nodes not having display names
Browse files Browse the repository at this point in the history
  • Loading branch information
Metious committed May 13, 2024
1 parent 69bff05 commit ac31daf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Nautilus/Crafting/TabNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ internal TabNode(string[] path, CraftTree.Type scheme, Sprite sprite, string nam
Sprite = sprite;
DisplayName = displayName;
Name = name;
Id = $"{Scheme.ToString()}_{Name}";
Id = $"{Scheme.ToString()}Menu_{Name}";

ModSprite.Add(new ModSprite(SpriteManager.Group.Category, Id, Sprite));
ModSprite.Add(new ModSprite(SpriteManager.Group.Category, $"{Scheme.ToString()}_{Name}", Sprite));

if (!string.IsNullOrEmpty(displayName))
{
Expand Down

0 comments on commit ac31daf

Please sign in to comment.