diff options
| author | Linnea Gräf <nea@nea.moe> | 2024-04-11 11:25:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-11 11:25:35 +0200 |
| commit | d6128f0dac37768bb295efe3f92c55ba890073de (patch) | |
| tree | 81063a18b66914b0f31571b395b9158bd9b1eb68 /src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java | |
| parent | 4cd130f140655f8741da93b1aa6c7bc7a2ce6d41 (diff) | |
| download | notenoughupdates-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.java | 3 |
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()); } |
