Fixed possible NPE in Minecraft#sendClickBlockToController caused by MinecraftTicker
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user