From 0434c99647492a5939dca4041bb62cf848c78abf Mon Sep 17 00:00:00 2001 From: Ghostlyr Date: Wed, 28 Oct 2015 07:09:04 +0600 Subject: [PATCH] Update ItemRobot.java --- common/buildcraft/robotics/ItemRobot.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/common/buildcraft/robotics/ItemRobot.java b/common/buildcraft/robotics/ItemRobot.java index 436eb09d..233a0028 100755 --- a/common/buildcraft/robotics/ItemRobot.java +++ b/common/buildcraft/robotics/ItemRobot.java @@ -35,6 +35,7 @@ import buildcraft.api.robots.DockingStation; import buildcraft.api.robots.EntityRobotBase; import buildcraft.core.BCCreativeTab; import buildcraft.core.lib.items.ItemBuildCraft; +import buildcraft.core.lib.utils.StringUtils; import buildcraft.core.lib.utils.NBTUtils; import buildcraft.transport.BlockGenericPipe; import buildcraft.transport.Pipe; @@ -98,11 +99,11 @@ public class ItemRobot extends ItemBuildCraft implements IEnergyContainerItem { int energy = getEnergy(cpt); int pct = energy * 100 / EntityRobotBase.MAX_ENERGY; - String enInfo = pct + "% Charged"; + String enInfo = pct + "% " + StringUtils.localize("tip.gate.charged"); if (energy == EntityRobotBase.MAX_ENERGY) { - enInfo = "Full Charge"; + enInfo = StringUtils.localize("tip.gate.fullcharge"); } else if (energy == 0) { - enInfo = "No Charge"; + enInfo = StringUtils.localize("tip.gate.nocharge"); } enInfo = (pct >= 80 ? EnumChatFormatting.GREEN : (pct >= 50 ? EnumChatFormatting.YELLOW : (pct >= 30 ? EnumChatFormatting.GOLD : (pct >= 20 ? EnumChatFormatting.RED : EnumChatFormatting.DARK_RED)))) + enInfo; list.add(enInfo);