// Spout Start
if (entityId == -42) {
SpoutClient.getInstance().setSpoutVersion(1);
((NetClientHandler) par1NetHandler).addToSendQueue(this);
SpoutClient.getInstance().getPacketManager().sendSpoutPacket(new PacketRenderDistance((byte)Minecraft.getMinecraft().gameSettings.renderDistance));
SpoutClient.getInstance().getPacketManager().sendSpoutPacket(new PacketFullVersion(SpoutClient.getClientVersion()));
System.out.println("Detected SpoutPlugin enabled server.");
if (this.mc.currentScreen instanceof GuiDownloadTerrain) {
this.mc.displayGuiScreen(null, true);
this.mc.displayGuiScreen(new org.spoutcraft.client.gui.precache.GuiPrecache());
}