mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 16:54:22 +00:00
Fix itemstack comparison with null
This commit is contained in:
1 parent
a2749e4507
commit
c6d7c7c11f
3 files changed
+4
-4
No files matched your search
@@ -621,7 +621,7 @@ public class GuiIngameForge extends GuiIngame
|
||||
{
|
||||
mc.mcProfiler.startSection("toolHighlight");
|
||||
|
||||
if (this.remainingHighlightTicks > 0 && this.highlightingItemStack != null)
|
||||
if (this.remainingHighlightTicks > 0 && !this.highlightingItemStack.isEmpty())
|
||||
{
|
||||
String name = this.highlightingItemStack.getDisplayName();
|
||||
if (this.highlightingItemStack.hasDisplayName())
|
||||
|
||||
Reference in new issue
Block a user