aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-04-11 11:25:35 +0200
committerGitHub <noreply@github.com>2024-04-11 11:25:35 +0200
commitd6128f0dac37768bb295efe3f92c55ba890073de (patch)
tree81063a18b66914b0f31571b395b9158bd9b1eb68 /src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java
parent4cd130f140655f8741da93b1aa6c7bc7a2ce6d41 (diff)
downloadnotenoughupdates-d6128f0dac37768bb295efe3f92c55ba890073de.tar.gz
notenoughupdates-d6128f0dac37768bb295efe3f92c55ba890073de.tar.bz2
notenoughupdates-d6128f0dac37768bb295efe3f92c55ba890073de.zip
Add hex overpay warning (#1072)
Co-authored-by: Lulonaut <lulonaut@lulonaut.dev>
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java b/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java
index eb6a5696..cc974841 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java
@@ -158,8 +158,7 @@ public class ItemUtils {
}
public static @Nullable String getDisplayName(@Nullable ItemStack itemStack) {
- if (itemStack == null)
- return null;
+ if (null == itemStack) return null;
return getDisplayName(itemStack.getTagCompound());
}