Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/main/java/gregtech/api/items/toolitem/ItemGTToolbelt.java
Original file line number Diff line number Diff line change
Expand Up @@ -451,13 +451,14 @@ public void setSelectedTool(int slot, ItemStack stack) {
@Override
public @NotNull String getItemStackDisplayName(@NotNull ItemStack stack) {
ItemStack tool = getHandler(stack).getSelectedStack();
String selectedToolDisplay = "";
getHandler(stack).disablePassthrough();
String name;
if (!tool.isEmpty()) {
selectedToolDisplay = " (" + tool.getDisplayName() + ")";
name = LocalizationUtils.format(getTranslationKey() + ".select", getToolMaterial(stack).getLocalizedName(),
tool.getDisplayName());
} else {
name = LocalizationUtils.format(getTranslationKey(), getToolMaterial(stack).getLocalizedName());
}
getHandler(stack).disablePassthrough();
String name = LocalizationUtils.format(getTranslationKey(), getToolMaterial(stack).getLocalizedName(),
selectedToolDisplay);
getHandler(stack).enablePassthrough();
return name;
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/assets/gregtech/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,8 @@ item.gt.tool.plunger.tooltip=§8Removes Fluids from Machines
item.gt.tool.wire_cutter_lv.name=%s Wire Cutter (LV)
item.gt.tool.wire_cutter_hv.name=%s Wire Cutter (HV)
item.gt.tool.wire_cutter_iv.name=%s Wire Cutter (IV)
item.gt.tool.toolbelt.name=%s Toolbelt%s
item.gt.tool.toolbelt.name=%s Toolbelt
item.gt.tool.toolbelt.name.select=%s Toolbelt (%s)
item.gt.tool.toolbelt.size=§a%s Tool Slots
item.gt.tool.toolbelt.tooltip=Holds GT or vanilla-esque tools that can be manually selected for in-world use, automatically selected for crafting, or stored for maintenance repair.
item.gt.tool.toolbelt.paint=Also supports Spray Cans.
Expand Down
Loading