Skip to content

Commit

Permalink
Add those localization changes for custom names to bow and arrow as w…
Browse files Browse the repository at this point in the history
…ell.
  • Loading branch information
bonii-xx committed Sep 15, 2014
1 parent a1e2a29 commit 6205894
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/main/java/tconstruct/items/tools/Arrow.java
Expand Up @@ -129,8 +129,7 @@ public void buildTool (int id, String name, List list)
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;
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/tconstruct/items/tools/BowBase.java
Expand Up @@ -762,8 +762,7 @@ public void buildTool (int id, String name, List list)
ItemStack accessoryStack = accessory != null ? new ItemStack(getAccessoryItem(), 1, id) : 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)
return;

Expand Down

0 comments on commit 6205894

Please sign in to comment.