Add those localization changes for custom names to bow and arrow as well.

This commit is contained in:
Bernhard Bonigl committed 2014-09-15 22:53:23 +02:00
1 parent a1e2a292b0
commit 6205894215
2 files changed
+2 -4

No files matched your search

@@ -129,8 +129,7 @@ public class Arrow extends ToolCore
ItemStack accessoryStack = accessory != null ? new ItemStack(getAccessoryItem(), 1, 0) : null;
Item extra = getExtraItem();
ItemStack extraStack = extra != null ? new ItemStack(getExtraItem(), 1, id) : null;
String completeName = String.format("%s %s", name, getLocalizedToolName());
ItemStack tool = ToolBuilder.instance.buildTool(new ItemStack(getHeadItem(), 1, id), new ItemStack(getHandleItem(), 1, id), accessoryStack, extraStack, completeName);
ItemStack tool = ToolBuilder.instance.buildTool(new ItemStack(getHeadItem(), 1, id), new ItemStack(getHandleItem(), 1, id), accessoryStack, extraStack, name);
if (tool != null)
{
tool.stackSize = 1;