Skip to content

Commit

Permalink
LavaTankItemBlock: translate FluidName when rendering tooltip
Browse files Browse the repository at this point in the history
Without this, it would render with the untranslated string (e.g. "Contains
electrum.molten" or similar).

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
  • Loading branch information
tycho committed Sep 5, 2013
1 parent 7a9dbd7 commit 700d9a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tconstruct/items/blocks/LavaTankItemBlock.java
Expand Up @@ -7,6 +7,7 @@
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.MathHelper;
import net.minecraft.util.StatCollector;

public class LavaTankItemBlock extends ItemBlock
{
Expand Down Expand Up @@ -37,7 +38,7 @@ public void addInformation (ItemStack stack, EntityPlayer player, List list, boo
NBTTagCompound liquidTag = stack.getTagCompound().getCompoundTag("Fluid");
if (liquidTag != null)
{
list.add("Contains " + liquidTag.getString("FluidName"));
list.add("Contains " + StatCollector.translateToLocal(liquidTag.getString("FluidName")));
list.add(liquidTag.getInteger("Amount") + " mB");
}
}
Expand Down

0 comments on commit 700d9a2

Please sign in to comment.