From 3b1b1af85261cb0172e1d06b3f483be2dd539367 Mon Sep 17 00:00:00 2001 From: MCTBL <30978504+MCTBL@users.noreply.github.com> Date: Sun, 3 Dec 2023 22:29:03 +0800 Subject: [PATCH] Add thousandth mark for cell tooltips. (#174) * Add millennials to cell tooltips, make it more readable * Update build.gradle --- build.gradle | 4 ++-- .../com/glodblock/github/common/item/FCBaseItemCell.java | 4 ++-- .../glodblock/github/common/item/ItemPortableFluidCell.java | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index f3a7fa278..4e31dc883 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,4 @@ -//version: 1699290261 +//version: 1700844281 /* DO NOT CHANGE THIS FILE! Also, you may replace this file at any time if there is an update available. @@ -302,7 +302,7 @@ if (apiPackage) { } if (accessTransformersFile) { - for (atFile in accessTransformersFile.split(",")) { + for (atFile in accessTransformersFile.split(" ")) { String targetFile = "src/main/resources/META-INF/" + atFile.trim() if (!getFile(targetFile).exists()) { throw new GradleException("Could not resolve \"accessTransformersFile\"! Could not find " + targetFile) diff --git a/src/main/java/com/glodblock/github/common/item/FCBaseItemCell.java b/src/main/java/com/glodblock/github/common/item/FCBaseItemCell.java index 66c63b7cd..d84738739 100644 --- a/src/main/java/com/glodblock/github/common/item/FCBaseItemCell.java +++ b/src/main/java/com/glodblock/github/common/item/FCBaseItemCell.java @@ -101,7 +101,7 @@ public void addCheckedInformation(final ItemStack stack, final EntityPlayer play if (cellInventory != null) { lines.add( - EnumChatFormatting.WHITE + String.valueOf(cellInventory.getUsedBytes()) + EnumChatFormatting.WHITE + NumberFormat.getInstance().format(cellInventory.getUsedBytes()) + EnumChatFormatting.GRAY + " " + GuiText.Of.getLocal() @@ -112,7 +112,7 @@ public void addCheckedInformation(final ItemStack stack, final EntityPlayer play + EnumChatFormatting.GRAY + GuiText.BytesUsed.getLocal()); lines.add( - EnumChatFormatting.WHITE + String.valueOf(cellInventory.getStoredFluidTypes()) + EnumChatFormatting.WHITE + NumberFormat.getInstance().format(cellInventory.getStoredFluidTypes()) + EnumChatFormatting.GRAY + " " + GuiText.Of.getLocal() diff --git a/src/main/java/com/glodblock/github/common/item/ItemPortableFluidCell.java b/src/main/java/com/glodblock/github/common/item/ItemPortableFluidCell.java index 9a7839d3f..8492fcc5d 100644 --- a/src/main/java/com/glodblock/github/common/item/ItemPortableFluidCell.java +++ b/src/main/java/com/glodblock/github/common/item/ItemPortableFluidCell.java @@ -1,5 +1,6 @@ package com.glodblock.github.common.item; +import java.text.NumberFormat; import java.util.EnumSet; import java.util.List; @@ -82,7 +83,7 @@ public void addCheckedInformation(final ItemStack stack, final EntityPlayer play final IFluidCellInventory cellInventory = handler.getCellInv(); if (cellInventory != null) { lines.add( - EnumChatFormatting.WHITE + String.valueOf(cellInventory.getUsedBytes()) + EnumChatFormatting.WHITE + NumberFormat.getInstance().format(cellInventory.getUsedBytes()) + EnumChatFormatting.GRAY + " " + GuiText.Of.getLocal() @@ -93,7 +94,7 @@ public void addCheckedInformation(final ItemStack stack, final EntityPlayer play + EnumChatFormatting.GRAY + GuiText.BytesUsed.getLocal()); lines.add( - EnumChatFormatting.WHITE + String.valueOf(cellInventory.getStoredFluidTypes()) + EnumChatFormatting.WHITE + NumberFormat.getInstance().format(cellInventory.getStoredFluidTypes()) + EnumChatFormatting.GRAY + " " + GuiText.Of.getLocal()