Update TControls.java

Fixed possible nullpointer exception
This commit is contained in:
BluSunrize committed 2014-01-11 13:35:36 +01:00
1 parent 4a0d416ca1
commit 9547a69de3
1 file changed
+1 -1
@@ -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");