Skip to content

Commit

Permalink
Fix Voidwalker Vis Discount TT (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoshy2002 authored Jan 17, 2025
1 parent fb357af commit 7d85c71
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
import net.minecraft.util.DamageSource;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.StatCollector;
import net.minecraft.world.World;
import net.minecraftforge.common.ISpecialArmor;
import net.minecraftforge.common.MinecraftForge;
Expand Down Expand Up @@ -92,8 +94,14 @@ public void damageArmor(EntityLivingBase e, ItemStack s, DamageSource source, in
if (source != DamageSource.fall) s.damageItem(dmg, e);
}

@Override
public void addInformation(ItemStack s, EntityPlayer p, List l, boolean b) {}
public void addInformation(ItemStack s, EntityPlayer p, List l, boolean b) {
l.add(
EnumChatFormatting.DARK_PURPLE + StatCollector.translateToLocal("tc.visdiscount")
+ ": "
+ getVisDiscount(s, p, null)
+ "%");
super.addInformation(s, p, l, b);
}

public void onUpdate(ItemStack s, World w, Entity e, int j, boolean k) {
super.onUpdate(s, w, e, j, k);
Expand Down

0 comments on commit 7d85c71

Please sign in to comment.