mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 12:19:48 +00:00
Add those localization changes for custom names to bow and arrow as well.
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user