Allow for optional localised text notifications.
This commit is contained in:
committed by
Gustas
parent
b742a776eb
commit
94c8339e17
@@ -46,7 +46,9 @@ namespace OpenRA.Mods.Common.Lint
|
||||
{
|
||||
if (key == null)
|
||||
{
|
||||
emitError($"Trait `{traitInfo.InstanceName}` on field `{field.Name}` has an empty translation reference.");
|
||||
if (!translationReference.Optional)
|
||||
emitError($"Trait `{traitInfo.InstanceName}` on field `{field.Name}` has an empty translation reference.");
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user