public override void HandleLogin(Packet1Login par1Packet1Login)
 {
     Mc.PlayerController = new PlayerControllerMP(Mc, this);
     Mc.StatFileWriter.ReadStat(StatList.JoinMultiplayerStat, 1);
     WorldClient          = new WorldClient(this, new WorldSettings(0L, par1Packet1Login.ServerMode, false, false, par1Packet1Login.TerrainType), par1Packet1Login.Field_48170_e, par1Packet1Login.DifficultySetting);
     WorldClient.IsRemote = true;
     Mc.ChangeWorld1(WorldClient);
     Mc.ThePlayer.Dimension = par1Packet1Login.Field_48170_e;
     Mc.DisplayGuiScreen(new GuiDownloadTerrain(this));
     Mc.ThePlayer.EntityId   = par1Packet1Login.ProtocolVersion;
     CurrentServerMaxPlayers = par1Packet1Login.MaxPlayers;
     ((PlayerControllerMP)Mc.PlayerController).SetCreative(par1Packet1Login.ServerMode == 1);
 }
Example #2
0
 public GuiConnecting(Minecraft par1Minecraft, string par2Str, int par3)
 {
     Cancelled = false;
     Console.WriteLine((new StringBuilder()).Append("Connecting to ").Append(par2Str).Append(", ").Append(par3).ToString());
     par1Minecraft.ChangeWorld1(null);
     new Thread(ConnectToServer).Start();
 }