Skip to content

Commit

Permalink
Update TControls.java
Browse files Browse the repository at this point in the history
Fixed possible nullpointer exception
  • Loading branch information
BluSunrize committed Jan 11, 2014
1 parent 4a0d416 commit 9547a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/tconstruct/client/TControls.java
Expand Up @@ -97,7 +97,7 @@ public void keyDown (EnumSet<TickType> types, KeyBinding kb, boolean tickEnd, bo
{
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");
Expand Down

0 comments on commit 9547a69

Please sign in to comment.