mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 13:14:17 +01:00
show dataKind failure in xldata <type>
This commit is contained in:
parent
f94839cd0c
commit
4c5f3eb1c2
1 changed files with 4 additions and 4 deletions
|
|
@ -165,9 +165,9 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
};
|
||||
|
||||
dataKind = dataKind.Replace(" ", string.Empty).ToLower();
|
||||
var matched = Enum.GetValues(typeof(DataKind))
|
||||
.Cast<DataKind>()
|
||||
.Where(k => Enum.GetName(typeof(DataKind), k).Replace("_", string.Empty).ToLower() == dataKind)
|
||||
|
||||
var matched = Enum.GetValues<DataKind>()
|
||||
.Where(kind => Enum.GetName(kind).Replace("_", string.Empty).ToLower() == dataKind)
|
||||
.FirstOrDefault();
|
||||
|
||||
if (matched != default)
|
||||
|
|
@ -176,7 +176,7 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
}
|
||||
else
|
||||
{
|
||||
Service<ChatGui>.Get().PrintError("/xldata: Invalid Data Type");
|
||||
Service<ChatGui>.Get().PrintError($"/xldata: Invalid data type {dataKind}");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue