Skip to content

Commit

Permalink
Update ModPiston.java
Browse files Browse the repository at this point in the history
  • Loading branch information
TheVikingWarrior committed Apr 16, 2014
1 parent 7aa23ac commit cd2599d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/tconstruct/modifiers/tools/ModPiston.java
Expand Up @@ -6,6 +6,7 @@
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import tconstruct.library.tools.ToolCore;
import net.minecraft.util.StatCollector;

public class ModPiston extends ToolModTypeFilter
{
Expand All @@ -15,7 +16,7 @@ public class ModPiston extends ToolModTypeFilter
public ModPiston(int effect, ItemStack[] items, int[] values)
{
super(effect, "Piston", items, values);
tooltipName = "\u00a77Knockback";
tooltipName = "\u00a77" + StatCollector.translateToLocal("modifier.tool.piston");
}

@Override
Expand Down Expand Up @@ -70,7 +71,7 @@ public void modify (ItemStack[] input, ItemStack tool)
int modifiers = tags.getInteger("Modifiers");
modifiers -= 1;
tags.setInteger("Modifiers", modifiers);
String modName = "\u00a74Knockback (" + increase + "/" + max + ")";
String modName = "\u00a74" + StatCollector.translateToLocal("modifier.tool.piston") + (" + increase + "/" + max + ");
int tooltipIndex = addToolTip(tool, tooltipName, modName);
int[] keyPair = new int[] { increase, max, tooltipIndex };
tags.setIntArray(key, keyPair);
Expand All @@ -86,7 +87,7 @@ void updateModTag (ItemStack tool, int[] keys)
{
NBTTagCompound tags = tool.getTagCompound().getCompoundTag("InfiTool");
String tip = "ModifierTip" + keys[2];
String modName = "\u00a77Knockback (" + keys[0] + "/" + keys[1] + ")";
String modName = "\u00a77" + StatCollector.translateToLocal("modifier.tool.piston") + (" + keys[0] + "/" + keys[1] + ");
tags.setString(tip, modName);
}

Expand Down

0 comments on commit cd2599d

Please sign in to comment.