Skip to content

Commit

Permalink
Translate all tool parts
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickMG authored and Dream-Master committed Jan 19, 2024
1 parent 2ef3a76 commit 6e3295f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/tconstruct/client/pages/ToolPage.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package tconstruct.client.pages;

import java.util.Arrays;

import net.minecraft.client.renderer.RenderHelper;
import net.minecraft.item.ItemStack;
import net.minecraft.util.StatCollector;
Expand Down Expand Up @@ -48,8 +50,7 @@ public void renderContentLayer(int localWidth, int localHeight, boolean isTransl
String cParts = StatCollector.translateToLocal("manual.page.tool1");
if (isTranslatable) {
title = StatCollector.translateToLocal(title);
iconText[0] = StatCollector.translateToLocal(iconText[0]);
iconText[1] = StatCollector.translateToLocal(iconText[1]);
iconText = Arrays.stream(iconText).map(StatCollector::translateToLocal).toArray(String[]::new);
cParts = StatCollector.translateToLocal(cParts);
}

Expand Down

0 comments on commit 6e3295f

Please sign in to comment.