Properly localise fluid names on machine blocks
This commit is contained in:
parent
14852b0b5d
commit
1c71614c4a
1 changed files with 3 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue