Skip to content

Commit

Permalink
Update MTESteamMacerator.java - Tier Tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayfulPiano authored Sep 10, 2024
1 parent 3567629 commit 893c743
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,20 @@ public void getWailaBody(ItemStack itemStack, List<String> currenttip, IWailaDat
super.getWailaBody(itemStack, currenttip, accessor, config);
NBTTagCompound tag = accessor.getNBTData();

int tierMachine = tag.getInteger("tierMachine");
String tierMachineText;
if (tierMachine == 1) {
tierMachineText = "Low Pressure";
} else if (tierMachine == 2) {
tierMachineText = "High Pressure";
} else {
tierMachineText = String.valueOf(tierMachine);
}

currenttip.add(
StatCollector.translateToLocal("GTPP.machines.tier") + ": "
+ EnumChatFormatting.YELLOW
+ tag.getInteger("tierMachine")
+ tierMachineText
+ EnumChatFormatting.RESET);
currenttip.add(
StatCollector.translateToLocal("GT5U.multiblock.curparallelism") + ": "
Expand Down

0 comments on commit 893c743

Please sign in to comment.