Properly localise fluid names on machine blocks

This commit is contained in:
Ben Spiers 2014-08-04 01:01:15 +01:00
parent 14852b0b5d
commit 1c71614c4a

View file

@ -173,9 +173,10 @@ public class ItemBlockMachine extends ItemBlock implements IEnergizedItem, ISpec
if(hasTank(itemstack))
{
if(getFluidStack(itemstack) != null)
FluidStack fluidStack = getFluidStack(itemstack);
if(fluidStack != null)
{
list.add(EnumColor.PINK + FluidRegistry.getFluidName(getFluidStack(itemstack)) + ": " + EnumColor.GREY + getFluidStack(itemstack).amount + "mB");
list.add(EnumColor.PINK + fluidStack.getFluid().getLocalizedName(fluidStack) + ": " + EnumColor.GREY + getFluidStack(itemstack).amount + "mB");
}
}