Fix itemstack comparison with null

This commit is contained in:
mezz committed 2017-06-19 23:27:52 -07:00
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())