(a34001e8f) Fixed headers not being translated in the repair interface
This commit is contained in:
@@ -93,7 +93,10 @@ namespace Barotrauma.Items.Components
|
||||
canBeSelected = true;
|
||||
|
||||
this.item = item;
|
||||
header = element.GetAttributeString("name", "");
|
||||
header =
|
||||
TextManager.Get(element.GetAttributeString("header", ""), returnNull: true) ??
|
||||
TextManager.Get(item.Prefab.ConfigElement.GetAttributeString("header", ""), returnNull: true) ??
|
||||
element.GetAttributeString("name", "");
|
||||
InitProjSpecific(element);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user