Enchant prefix fix

This commit is contained in:
Dominic committed 2021-07-17 14:22:40 -05:00
1 parent b2166e65bb
commit 2bd66dc524
1 file changed
+1 -1
+1 -1
View File
@@ -506,7 +506,7 @@ namespace CalamityMod.ILEditing
On.Terraria.Item.AffixName += (orig, self) =>
{
string result = orig(self);
if (self.IsEnchanted())
if (!self.IsAir && self.Calamity().AppliedEnchantment.HasValue)
result = $"{self.Calamity().AppliedEnchantment.Value.Name} {result}";
return result;
};