Skip to content

Commit

Permalink
Fix untranslatable text in JEI
Browse files Browse the repository at this point in the history
  • Loading branch information
hjake123 committed Oct 8, 2024
1 parent 1f8ee2e commit 318f973
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public void render(GuiGraphics gui, Power ingredient) {
@Override
public List<Component> getTooltip(Power ingredient, TooltipFlag tooltipFlag) {
List<Component> ret = new ArrayList<>();
ret.add(Component.literal(ingredient.getName() + " Power"));
ret.add(Component.literal(ingredient.getName()).append(Component.translatable("text.reactive.power")));
if(tooltipFlag.isAdvanced()){
ret.add(Component.literal(ingredient.getResourceLocation().toString()).withStyle(ChatFormatting.GRAY));
}
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/reactive/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
"text.reactive.lack_of": "Lack of ",
"text.reactive.too_few_breeze_rods": "Lack of Mounted Breeze Rod Seal",
"text.reactive.litmus_integrity_failure": "CRUCIBLE INTEGRITY VIOLATION",
"text.reactive.power": " Power",
"docs.reactive.reagent_label": "$(4)Reagents: ",
"docs.reactive.powers_label": "Powers: $(br)",
"docs.reactive.curse_label": "Curse$(br)",
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/reactive/lang/zh_cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
"commands.reactive.no_player": "无法将折跃之瓶给予玩家之外的事物",
"commands.reactive.no_crucible": "该位置不存在坩埚",
"commands.reactive.fake_power": "无效能量",
"text.reactive.power": "能量",
"text.reactive.litmus_instructions": "右击以阅读能量组分",
"text.reactive.litmus_instructions_2": "Shift右击以阅读反应状态",
"text.reactive.measurement_header": "-- 测量结果 --",
Expand Down

0 comments on commit 318f973

Please sign in to comment.