Skip to content

Commit

Permalink
Use "B" instead of "kmB" in ME Input Hatches. (#2759)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomprince authored Jan 28, 2025
1 parent 37c19e4 commit fc5a7f7
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
import com.gregtechceu.gtceu.integration.ae2.slot.ExportOnlyAESlot;
import com.gregtechceu.gtceu.integration.ae2.slot.IConfigurableSlot;
import com.gregtechceu.gtceu.integration.ae2.utils.AEUtil;
import com.gregtechceu.gtceu.utils.FormattingUtil;
import com.gregtechceu.gtceu.utils.GTMath;

import com.lowdragmc.lowdraglib.gui.util.DrawerHelper;
import com.lowdragmc.lowdraglib.gui.util.TextFormattingUtil;
import com.lowdragmc.lowdraglib.side.fluid.forge.FluidHelperImpl;
import com.lowdragmc.lowdraglib.utils.Position;
import com.lowdragmc.lowdraglib.utils.Size;
Expand Down Expand Up @@ -70,7 +70,8 @@ public void drawInBackground(@NotNull GuiGraphics graphics, int mouseX, int mous
DrawerHelper.drawFluidForGui(graphics, FluidHelperImpl.toFluidStack(stack), config.amount(), stackX,
stackY, 16, 16);
if (!parentWidget.isStocking()) {
String amountStr = TextFormattingUtil.formatLongToCompactString(config.amount(), 4) + "mB";
String amountStr = FormattingUtil.formatNumberReadable(config.amount(), true,
FormattingUtil.DECIMAL_FORMAT_0F, "B");
drawStringFixedCorner(graphics, amountStr, stackX + 17, stackY + 17, 16777215, true, 0.5f);
}
}
Expand All @@ -81,7 +82,8 @@ public void drawInBackground(@NotNull GuiGraphics graphics, int mouseX, int mous
DrawerHelper.drawFluidForGui(graphics, FluidHelperImpl.toFluidStack(stack), stock.amount(), stackX,
stackY + 18, 16,
16);
String amountStr = TextFormattingUtil.formatLongToCompactString(stock.amount(), 4) + "mB";
String amountStr = FormattingUtil.formatNumberReadable(stock.amount(), true,
FormattingUtil.DECIMAL_FORMAT_0F, "B");
drawStringFixedCorner(graphics, amountStr, stackX + 17, stackY + 18 + 17, 16777215, true, 0.5f);
}
}
Expand Down

0 comments on commit fc5a7f7

Please sign in to comment.