From 9547a69de3ff72c14b3e6b4543ffd7e532ff0fc7 Mon Sep 17 00:00:00 2001 From: BluSunrize Date: Sat, 11 Jan 2014 13:35:36 +0100 Subject: [PATCH] Update TControls.java Fixed possible nullpointer exception --- src/main/java/tconstruct/client/TControls.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/tconstruct/client/TControls.java b/src/main/java/tconstruct/client/TControls.java index 034f77a0..ff9f2c1b 100644 --- a/src/main/java/tconstruct/client/TControls.java +++ b/src/main/java/tconstruct/client/TControls.java @@ -97,7 +97,7 @@ public class TControls extends TKeyHandler { jumping = mc.thePlayer.isAirBorne; ItemStack shoes = mc.thePlayer.getCurrentArmor(0); - if (shoes.hasTagCompound() && shoes.getTagCompound().hasKey("TinkerArmor")) + if (shoes != null && shoes.hasTagCompound() && shoes.getTagCompound().hasKey("TinkerArmor")) { NBTTagCompound shoeTag = shoes.getTagCompound().getCompoundTag("TinkerArmor"); midairJumps = shoeTag.getInteger("Double-Jump");