aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/items/GT_FluidDisplayItem.java
diff options
context:
space:
mode:
authorGlodBlock <60341015+GlodBlock@users.noreply.github.com>2021-09-30 22:01:29 +0800
committerGitHub <noreply@github.com>2021-09-30 22:01:29 +0800
commit6dfd7aa8e45be58ba9af25e41157ec98512e261a (patch)
tree46618c6e7c96a2b9fefc05ed1131604b92fe185a /src/main/java/gregtech/common/items/GT_FluidDisplayItem.java
parent4b0425a1c52f769b21cbf432449198269bed3a5e (diff)
downloadGT5-Unofficial-6dfd7aa8e45be58ba9af25e41157ec98512e261a.tar.gz
GT5-Unofficial-6dfd7aa8e45be58ba9af25e41157ec98512e261a.tar.bz2
GT5-Unofficial-6dfd7aa8e45be58ba9af25e41157ec98512e261a.zip
small change
follow TimeConqueror's suggestion
Diffstat (limited to 'src/main/java/gregtech/common/items/GT_FluidDisplayItem.java')
-rw-r--r--src/main/java/gregtech/common/items/GT_FluidDisplayItem.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/gregtech/common/items/GT_FluidDisplayItem.java b/src/main/java/gregtech/common/items/GT_FluidDisplayItem.java
index ab9047d518..ad4e1f6bdd 100644
--- a/src/main/java/gregtech/common/items/GT_FluidDisplayItem.java
+++ b/src/main/java/gregtech/common/items/GT_FluidDisplayItem.java
@@ -40,7 +40,7 @@ public class GT_FluidDisplayItem extends GT_Generic_Item {
protected void addAdditionalToolTips(List aList, ItemStack aStack, EntityPlayer aPlayer) {
if (FluidRegistry.getFluid(aStack.getItemDamage()) != null) {
String tChemicalFormula = getChemicalFormula(new FluidStack(FluidRegistry.getFluid(aStack.getItemDamage()), 1));
- if (!tChemicalFormula.equals("")) aList.add(EnumChatFormatting.GRAY + tChemicalFormula + EnumChatFormatting.GRAY);
+ if (!tChemicalFormula.isEmpty()) aList.add(EnumChatFormatting.GRAY + tChemicalFormula + EnumChatFormatting.GRAY);
}
NBTTagCompound aNBT = aStack.getTagCompound();
if (GT_Values.D1) {