Don't crash when logging out with network tool on transparent mode.

This commit is contained in:
AlgorithmX2 2014-08-30 16:36:38 -05:00
parent 689a9bb8ae
commit 59a0c3f11a

View file

@ -90,6 +90,9 @@ public class ClientHelper extends ServerHelper
public void triggerUpdates()
{
Minecraft mc = Minecraft.getMinecraft();
if ( mc == null || mc.thePlayer == null || mc.theWorld == null )
return;
EntityPlayer player = mc.thePlayer;
if ( player == null )