Merge branch 'master' of https://github.com/CalamityTeam/CalamityMod
This commit is contained in:
commit
3ba2e51905
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