Advertisement
robin4002

Untitled

Jul 17th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1.         if(!ipToConnect.isEmpty() && ipToConnect.contains(":") && NHGClient.mc.theWorld != null)
  2.         {
  3.             NHGClient.mc.theWorld.sendQuittingDisconnectingPacket();
  4.             NHGClient.mc.loadWorld((WorldClient)null);
  5.             NHGClient.mc.displayGuiScreen(new NHGGuiMainMenu());
  6.             FMLClientHandler.instance().connectToServerAtStartup(ipToConnect.split(":")[0], Integer.parseInt(ipToConnect.split(":")[1]));
  7.             ipToConnect = "";
  8.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement