Skip to content

Commit

Permalink
lang power
Browse files Browse the repository at this point in the history
  • Loading branch information
strubium committed Feb 19, 2024
1 parent 1338d15 commit ff8407d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ private void showBrewingStandInfo(IProbeInfo probeInfo, World world, IProbeHitDa
int fuel = ((TileEntityBrewingStand) te).getField(1);
probeInfo.horizontal(probeInfo.defaultLayoutStyle().alignment(ElementAlignment.ALIGN_CENTER))
.item(new ItemStack(Items.BLAZE_POWDER), probeInfo.defaultItemStyle().width(16).height(16))
.text(LABEL + "Fuel: " + INFO + fuel);
.text(LABEL + "{*theoneprobe.probe.fuel_indicator*} " + INFO + fuel);
if (brewtime > 0) {
probeInfo.text(LABEL + "Time: " + INFO + brewtime + " ticks");
probeInfo.text(LABEL + "{*theoneprobe.probe.time_indicator*} " + INFO + brewtime + " ticks");
}

}
Expand Down Expand Up @@ -305,16 +305,8 @@ public static void showStandardBlockInfo(IProbeConfig config, ProbeMode mode, IP
} else {
if (Tools.show(mode, config.getShowModName())) {
probeInfo.vertical()
.text(NAME + getBlockUnlocalizedName(block))
.text(MODNAME + modid);
} else {
probeInfo.vertical()
.text(NAME + getBlockUnlocalizedName(block));
}
}
}
}

private static String getBlockUnlocalizedName(Block block) {
return STARTLOC + block.getUnlocalizedName() + ".name" + ENDLOC;
}
}
1 change: 1 addition & 0 deletions src/main/resources/assets/theoneprobe/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ item.theoneprobe.probenote.name=The One Probe Read Me
theoneprobe.probe.enchanting_power=Enchanting Power:
theoneprobe.probe.tnt_fuse=TNT Fuse:
theoneprobe.probe.fuel_indicator=Fuel:
theoneprobe.probe.time_indicator=Time:

itemGroup.Probe=The One Probe

0 comments on commit ff8407d

Please sign in to comment.