Patch a stray NPE

This commit is contained in:
AlexTheCoder 2018-01-26 19:00:02 -05:00 committed by Alexander Meech
parent c4a3da542f
commit 1536fac245

View File

@ -126,6 +126,9 @@ public abstract class ItemUsable extends Item implements IThrown
if (!UtilGear.isMat(player.getItemInHand(), GetType())) if (!UtilGear.isMat(player.getItemInHand(), GetType()))
return; return;
if (UtilItem.getDisplayName(player.getItemInHand()) == null)
return;
if (!UtilItem.getDisplayName(player.getItemInHand()).equals(_itemName)) if (!UtilItem.getDisplayName(player.getItemInHand()).equals(_itemName))
return; return;