mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 21:20:06 +00:00
Localize armor tooltips
This commit is contained in:
1 parent
58db702878
commit
30d7b322bd
5 files changed
+62
-10
No files matched your search
@@ -12,6 +12,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.item.*;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.*;
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.ISpecialArmor;
|
||||
import tconstruct.library.TConstructRegistry;
|
||||
@@ -415,9 +416,9 @@ public abstract class ArmorCore extends ItemArmor implements ISpecialArmor, IMod
|
||||
protection = getProtection(tags);
|
||||
}
|
||||
if (protection > 0)
|
||||
list.add("\u00a77Protection: " + df.format(protection) + "%");
|
||||
list.add("\u00a77" + StatCollector.translateToLocal("armor.core.protection") + df.format(protection) + "%");
|
||||
else
|
||||
list.add("\u00A7oBroken");
|
||||
list.add("\u00A7o" + StatCollector.translateToLocal("armor.core.broken"));
|
||||
|
||||
boolean displayToolTips = true;
|
||||
int tipNum = 0;
|
||||
|
||||
Reference in new issue
Block a user