Setup translation keys for mode setting & modes for tools
This commit is contained in:
parent
8ca3070735
commit
d0ead155d3
1 changed files with 5 additions and 3 deletions
|
@ -64,9 +64,11 @@ public class ItemTool extends Item
|
||||||
if (player.isSneaking())
|
if (player.isSneaking())
|
||||||
{
|
{
|
||||||
setMode(itemStack, (getMode(itemStack) + 1) % toolModes.length);
|
setMode(itemStack, (getMode(itemStack) + 1) % toolModes.length);
|
||||||
|
String modeKey = toolModes[getMode(itemStack)];
|
||||||
if (!world.isRemote)
|
if (!world.isRemote && modeKey != null && !modeKey.isEmpty())
|
||||||
player.addChatMessage("Set tool mode to: " + toolModes[getMode(itemStack)]);
|
{
|
||||||
|
player.addChatMessage(LanguageUtility.getLocal("tool.mode.set") + LanguageUtility.getLocal(modeKey));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue