diff --git a/Source/GrasscutterTools/Game/Props/GadgetType.cs b/Source/GrasscutterTools/Game/Props/GadgetType.cs index 54ea6e7..1b2bc92 100644 --- a/Source/GrasscutterTools/Game/Props/GadgetType.cs +++ b/Source/GrasscutterTools/Game/Props/GadgetType.cs @@ -88,7 +88,9 @@ namespace GrasscutterTools.Game.Props public static string ToTranslatedString(string gadgetType, string language) { if (string.IsNullOrEmpty(gadgetType)) gadgetType = "Deprecated"; - return language.StartsWith("zh") ? TextMapCHS[gadgetType] : gadgetType; + if (language.StartsWith("zh") && TextMapCHS.TryGetValue(gadgetType, out var t)) + return t; + return gadgetType; } } } \ No newline at end of file