From 0a12840e6823677f17fe2b014147ff2fc48a4ba3 Mon Sep 17 00:00:00 2001 From: CovertJaguar Date: Tue, 12 Nov 2013 01:05:13 -0800 Subject: [PATCH] Fix Water/Lava Fluid Localization --- .../net/minecraftforge/fluids/FluidRegistry.java | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/common/net/minecraftforge/fluids/FluidRegistry.java b/common/net/minecraftforge/fluids/FluidRegistry.java index 5031fa62b..16d011f7d 100644 --- a/common/net/minecraftforge/fluids/FluidRegistry.java +++ b/common/net/minecraftforge/fluids/FluidRegistry.java @@ -4,6 +4,7 @@ import java.util.HashMap; import java.util.Map; import net.minecraft.block.Block; +import net.minecraft.util.StatCollector; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.Event; @@ -25,8 +26,19 @@ public abstract class FluidRegistry static BiMap fluidIDs = HashBiMap.create(); static BiMap fluidBlocks; - public static final Fluid WATER = new Fluid("water").setBlockID(Block.waterStill.blockID).setUnlocalizedName(Block.waterStill.getUnlocalizedName()); - public static final Fluid LAVA = new Fluid("lava").setBlockID(Block.lavaStill.blockID).setLuminosity(15).setDensity(3000).setViscosity(6000).setTemperature(1300).setUnlocalizedName(Block.lavaStill.getUnlocalizedName()); + public static final Fluid WATER = new Fluid("water") { + @Override + public String getLocalizedName() { + return StatCollector.translateToLocal("tile.water.name"); + } + }.setBlockID(Block.waterStill.blockID).setUnlocalizedName(Block.waterStill.getUnlocalizedName()); + + public static final Fluid LAVA = new Fluid("lava") { + @Override + public String getLocalizedName() { + return StatCollector.translateToLocal("tile.lava.name"); + } + }.setBlockID(Block.lavaStill.blockID).setLuminosity(15).setDensity(3000).setViscosity(6000).setTemperature(1300).setUnlocalizedName(Block.lavaStill.getUnlocalizedName()); public static int renderIdFluid = -1;