mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 11:59:14 +00:00
Update TControls.java
Fixed possible nullpointer exception
This commit is contained in:
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");
|
||||
|
||||
Reference in new issue
Block a user