mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Update ModPiston.java
This commit is contained in:
1 parent
7aa23ac405
commit
cd2599d816
1 file changed
+4
-3
@@ -6,6 +6,7 @@ import java.util.List;
|
||||
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
|
||||
{
|
||||
@@ -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
|
||||
@@ -70,7 +71,7 @@ public class ModPiston extends ToolModTypeFilter
|
||||
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);
|
||||
@@ -86,7 +87,7 @@ public class ModPiston extends ToolModTypeFilter
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user