From 1536fac245d96ac2ccdef13024a7bf60fed8e16a Mon Sep 17 00:00:00 2001 From: AlexTheCoder Date: Fri, 26 Jan 2018 19:00:02 -0500 Subject: [PATCH] Patch a stray NPE --- .../mineplex/minecraft/game/classcombat/item/ItemUsable.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Plugins/Mineplex.Minecraft.Game.ClassCombat/src/mineplex/minecraft/game/classcombat/item/ItemUsable.java b/Plugins/Mineplex.Minecraft.Game.ClassCombat/src/mineplex/minecraft/game/classcombat/item/ItemUsable.java index 11be1b42c..5236e9a50 100644 --- a/Plugins/Mineplex.Minecraft.Game.ClassCombat/src/mineplex/minecraft/game/classcombat/item/ItemUsable.java +++ b/Plugins/Mineplex.Minecraft.Game.ClassCombat/src/mineplex/minecraft/game/classcombat/item/ItemUsable.java @@ -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;