Enchant prefix fix
This commit is contained in:
1 parent
b2166e65bb
commit
2bd66dc524
1 file changed
+1
-1
@@ -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;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user