Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!ipToConnect.isEmpty() && ipToConnect.contains(":") && NHGClient.mc.theWorld != null)
- {
- NHGClient.mc.theWorld.sendQuittingDisconnectingPacket();
- NHGClient.mc.loadWorld((WorldClient)null);
- NHGClient.mc.displayGuiScreen(new NHGGuiMainMenu());
- FMLClientHandler.instance().connectToServerAtStartup(ipToConnect.split(":")[0], Integer.parseInt(ipToConnect.split(":")[1]));
- ipToConnect = "";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement