mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 19:59:55 +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
@@ -762,8 +762,7 @@ public abstract class BowBase extends ToolCore
|
||||
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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user