Patch a stray NPE
This commit is contained in:
parent
c4a3da542f
commit
1536fac245
@ -126,6 +126,9 @@ 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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user