diff --git a/TShockAPI/Utils.cs b/TShockAPI/Utils.cs index 37b95f58..bfe6c0c6 100644 --- a/TShockAPI/Utils.cs +++ b/TShockAPI/Utils.cs @@ -484,11 +484,7 @@ namespace TShockAPI /// Prefix name public string GetPrefixById(int id) { - var item = new Item(); - item.SetDefaults(0); - item.prefix = (byte) id; - item.AffixName(); - return item.name.Trim(); + return id < FirstItemPrefix || id > LastItemPrefix ? "" : Lang.prefix[id] ?? ""; } ///