Skip to content

Commit

Permalink
FluidReference: Fix incorrect args to Text.translatable
Browse files Browse the repository at this point in the history
  • Loading branch information
Juuxel committed Aug 7, 2024
1 parent c459425 commit 52061d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/src/main/java/juuxel/adorn/fluid/FluidReference.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ public Text getAmountText(long max, FluidUnit maxUnit) {
var displayUnit = getDefaultDisplayUnit();
return Text.translatable(
"gui.adorn.fluid_volume.fraction",
FluidUnit.losslessConvert(getAmount(), getUnit(), displayUnit).resizeFraction(getUnitDenominator(getUnit(), displayUnit)),
FluidUnit.losslessConvert(max, maxUnit, displayUnit).resizeFraction(getUnitDenominator(maxUnit, displayUnit)),
FluidUnit.losslessConvert(getAmount(), getUnit(), displayUnit).resizeFraction(getUnitDenominator(getUnit(), displayUnit)).toString(),
FluidUnit.losslessConvert(max, maxUnit, displayUnit).resizeFraction(getUnitDenominator(maxUnit, displayUnit)).toString(),
displayUnit.getSymbol()
);
}
Expand Down

0 comments on commit 52061d5

Please sign in to comment.