From d0ead155d3c275d68e303341a755114cb79b2de3 Mon Sep 17 00:00:00 2001 From: Robert S Date: Mon, 5 May 2014 17:16:54 -0400 Subject: [PATCH] Setup translation keys for mode setting & modes for tools --- .../resonantinduction/core/prefab/items/ItemTool.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/scala/resonantinduction/core/prefab/items/ItemTool.java b/src/main/scala/resonantinduction/core/prefab/items/ItemTool.java index c345fb263..329d9a2a8 100644 --- a/src/main/scala/resonantinduction/core/prefab/items/ItemTool.java +++ b/src/main/scala/resonantinduction/core/prefab/items/ItemTool.java @@ -64,9 +64,11 @@ public class ItemTool extends Item if (player.isSneaking()) { setMode(itemStack, (getMode(itemStack) + 1) % toolModes.length); - - if (!world.isRemote) - player.addChatMessage("Set tool mode to: " + toolModes[getMode(itemStack)]); + String modeKey = toolModes[getMode(itemStack)]; + if (!world.isRemote && modeKey != null && !modeKey.isEmpty()) + { + player.addChatMessage(LanguageUtility.getLocal("tool.mode.set") + LanguageUtility.getLocal(modeKey)); + } } }