Fixed possible NPE in Minecraft#sendClickBlockToController caused by MinecraftTicker

This commit is contained in:
CrushedPixel
2015-06-22 13:20:06 +02:00
parent a15187b3ec
commit e883f958cb

View File

@@ -241,7 +241,7 @@ public class MinecraftTicker {
}
}
if(mc != null)
if(mc != null && mc.thePlayer != null)
mc.sendClickBlockToController(mc.currentScreen == null && mc.gameSettings.keyBindAttack.isKeyDown() && mc.inGameHasFocus);
if(mc != null)