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
1 changed files with 4 additions and 1 deletions

View File

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